lingohub_list_projects
List projects
List every Lingohub project this API key can see (owned and shared, across workspaces). Each entry has the title, its links and the workspace_url + project_url slugs that every other tool needs. GET /v1/projects.
无需输入参数。
lingohub_get_project
Get project
One project: title, description, owner email, configured locales (project_locales), timestamps and links. GET /v1/{workspace_url}/projects/{project_url}.
输入参数project_url必填workspace_url必填
lingohub_get_project_status
Get project file status
Translation status of one project: each resource file with per-locale segment counts (NOT_TRANSLATED, DRAFT, TRANSLATED, APPROVED, ...), failing quality checks, the export formats it supports and whether a Git repository is connected and can be pushed to. GET .../projects/{project_url}/status.
输入参数branchproject_url必填workspace_url必填
lingohub_get_workspace_status
Get workspace translation status
Translation progress of every project in one workspace: title, app URL, total segment count and per-locale counts by status (NOT_TRANSLATED, DRAFT, TRANSLATED, PREFILLED, APPROVED). GET /v1/{workspace_url}/projects/status.
输入参数workspace_url必填
lingohub_create_project
Create project
WRITE: create a new localization project in a workspace (needs settings-management permission on the key). Returns the new project with its links. It adds a project and changes nothing existing; repeating the call can create a second project. POST /v1/{workspace_url}/projects.
输入参数title必填descriptionresource_type必填workspace_url必填source_language必填target_languages
lingohub_list_resources
List resource files
List a project's resource files: name, locale and links (including a download link). GET .../projects/{project_url}/resources.
输入参数branchproject_url必填add_iso2_slugworkspace_url必填locale_in_file_name
lingohub_download_resource
Download resource file
Download one resource file as text, in one language. file_name is the file name as list_resources shows it (the folder goes in `path`). Long files are cut at 40000 characters (truncated: true); use request_export for a full copy. GET .../projects/{project_url}/resources/{file_name}.
输入参数pathbranchlanguagefile_name必填project_url必填html_encodingworkspace_url必填filter_by_statusblank_content_handling
lingohub_upload_resource_file
Upload resource file
WRITE: upload one text resource file (JSON, properties, XLIFF, PO, ...) into a project. The language comes from the file name or from `language`. The import flags decide whether existing segments are changed or deactivated: with updating or deactivation on, translations already in Lingohub can be overwritten or switched off, so state the flags you want. Never retried. POST .../projects/{project_url}/resources.
输入参数pathbranchcontent必填languagefile_name必填project_url必填workspace_url必填source_create_newtarget_create_newsource_update_existingtarget_update_existingsource_deactivate_missing另有 1 个
lingohub_delete_resource
Delete resource file
WRITE, DESTRUCTIVE: delete a resource container: the source-language file AND all its target-language files with their translations. file_name and path must address the source-language file. This cannot be undone through the API. Never retried. DELETE .../projects/{project_url}/resources/{file_name}.
输入参数pathbranchfile_name必填project_url必填workspace_url必填
lingohub_request_export
Request export
Start an asynchronous export of a project's resource files as a ZIP. It creates an export job and changes no project data. Returns the export id; poll get_export until its status is SUCCESS to get the download URL. Without filters it exports every file and language. POST .../projects/{project_url}/exports.
输入参数branchlanguagesfile_pathsproject_url必填export_formatworkspace_url必填
lingohub_get_export
Get export status
Status of an export started with request_export: overall and per-file status (NEW, SCHEDULED, PROCESSING, SUCCESS, SKIPPED, ERROR), error details and, when done, the pre-signed download URL of the ZIP. GET .../projects/{project_url}/exports/{export_id}.
输入参数export_id必填project_url必填workspace_url必填
lingohub_list_context_images
List context images
List the context images (screenshots that show translators where a text is used) of a project, with connected-segment counts and processing status. Paginated; page is zero-based. GET .../projects/{project_url}/contextImages.
输入参数pagesizeproject_url必填workspace_url必填
lingohub_delete_context_image
Delete context image
WRITE, DESTRUCTIVE: delete one context image and its connections to text segments. Never retried. DELETE .../projects/{project_url}/contextImages/{image_id}.
输入参数image_id必填project_url必填workspace_url必填
lingohub_push_to_repository
Push translations to repository
WRITE: push the project's resource files to its linked Git repository (GitHub, GitLab, Bitbucket or Azure DevOps; the connection must already exist). Depending on push_type this commits to a branch or opens a pull request, so it changes the user's repository. Never retried. POST .../projects/{project_url}/push.
输入参数pathbranchlanguagepush_typeproject_url必填workspace_url必填commit_messagecommit_descriptionpull_request_titlepull_request_branchpull_request_description