localazy_list_projects
List projects
List the Localazy projects the token can reach (a project token reaches one project): id, slug, name, source language, your role and visibility. Optionally add owning-organization limits (keys used/available, feature flags) and per-language progress counts (active, review, current, translated, sourceChanged, needImprovement). GET /projects.
輸入參數languagesorganization
localazy_list_import_formats
List import file types
List the file types Localazy can store strings as (type id, name, support for plurals/arrays/structured keys). The `json` type is what localazy_import_keys uses. GET /import/formats.
無需輸入參數。
localazy_list_files
List files
List the files in a project (id, name, type, optional path). Use a file id with localazy_get_file_keys to read its strings. GET /projects/{projectId}/files.
輸入參數project必填
localazy_get_file_keys
Get file keys and translations
Read the strings of one file in one language: key id, key path, current translation (a string, an array or a plural object keyed @one/@other). Pages of up to 1000 keys; pass `next` for the following page. Set extra_info for hidden/limit/deprecated/comment, no_content to list keys without text. Counts against the project's daily fetch cap. GET /projects/{projectId}/files/{fileId}/keys/{lang}.
輸入參數lang必填nextlimitfile_id必填project必填deprecatedextra_infono_contentunapproved
localazy_list_key_links
List key links (duplicities)
List links between duplicate source keys (key id, linked project id, linked key id), paged. Needs the Reviewer role. GET /projects/{projectId}/links.
輸入參數nextlimitproject必填
localazy_list_cdn_metadata
List CDN metadata files
List the Localazy CDN release tags of a project and the URL of each tag's metadata file (languages, plural rules). Needs the Manager role. GET /projects/{projectId}/cdn.
輸入參數project必填
localazy_get_import_progress
Get import progress
Progress of an import batch started with localazy_import_keys (pass its `import_batch`). The endpoint is used by Localazy's own API client but is not in the public docs yet, so the reply is returned as Localazy sends it. GET /projects/{projectId}/import/{importBatch}.
輸入參數project必填import_batch必填
localazy_get_tm_suggestions
Get translation memory suggestions
Translation Memory suggestions for one source key into a target language: earlier translations of the same text, with the project they came from. Free; no Localazy credits. GET /projects/{projectId}/keys/{keyId}/suggestions/tm.
輸入參數to必填fromkey_id必填project必填
localazy_get_mt_suggestions
Get machine translation suggestions
Machine Translation suggestions (one per engine) for one source key into a target language. Free: it does not consume Localazy credits (Localazy AI does; see localazy_translate_with_ai). The first request for a key can be slower. Nothing is saved. GET /projects/{projectId}/keys/{keyId}/suggestions/mt.
輸入參數to必填fromkey_id必填project必填
localazy_list_glossary
List glossary terms
All glossary terms of a project: id, description, translate/case-sensitive/exact-match flags and the term in each language. GET /projects/{projectId}/glossary.
輸入參數project必填
localazy_get_glossary_term
Get glossary term
One glossary term by id. GET /projects/{projectId}/glossary/{id}.
輸入參數project必填term_id必填
localazy_create_glossary_term
Create glossary term
WRITE: add one term to a project's glossary (max 1,000 terms per project). Needs the Reviewer role. The term guides translators and Localazy AI from now on. POST /projects/{projectId}/glossary.
輸入參數term必填project必填descriptionexact_matchcase_sensitivetranslate_term
localazy_update_glossary_term
Update glossary term
WRITE: replace the content of one glossary term (the term list and any flags you pass overwrite the old values). Needs the Reviewer role. Read the term first with localazy_get_glossary_term. PUT /projects/{projectId}/glossary/{id}.
輸入參數term必填project必填term_id必填descriptionexact_matchcase_sensitivetranslate_term
localazy_submit_translation
Submit a translation
WRITE: set the translation of ONE source key in ONE target language. Reviewers, managers, owners and trusted translators set it as the current version (it overwrites the existing translation and goes live in the next download/CDN release); a translator's value is stored as a candidate for review. Values are stored as-is, with no placeholder, plural or length check, and the source language cannot be written. Check the reply's `stored`. POST /projects/{projectId}/keys/{keyId}/translations/{lang}.
輸入參數lang必填value必填key_id必填project必填
localazy_import_keys
Import a few keys
WRITE: add or update up to 50 string keys in ONE file, in ONE language (flat key -> text; use a key like "home.title" for the key name). Needs the Owner role. Nothing is deleted or deprecated, and Localazy does not overwrite existing current translations by default (translations identical to the source are skipped). By default the language is the project's source language, so this adds new source keys or changes the source text of existing ones (which marks their translations as changed); pass a different language to import translations, optionally through review with import_as_new. Imports count against the project's daily import cap (Free plan: 100/day). Returns an import_batch id for localazy_get_import_progress. POST /projects/{projectId}/import.
輸入參數keys必填project必填language必填file_namefile_pathimport_as_new
localazy_update_key_properties
Update key comment/limit/visibility
WRITE: change a source key's translator comment, maximum translation length, or hidden flag (fields you omit stay as they are). Needs the Manager role. It does not change texts and cannot deprecate or delete the key. PUT /projects/{projectId}/keys/{keyId}.
輸入參數limithiddenkey_id必填commentproject必填
localazy_translate_with_ai
Translate texts with Localazy AI (spends credits)
COSTS CREDITS: translate up to 10 texts with Localazy AI. Every call consumes Localazy credits from the account balance, by the number of translated words (see localazy.com/pricing); nothing is stored in the project, the translations are only returned. Limits: 10 requests/minute, 32 items and 16,384 characters per request. Beta. Needs the Owner role. POST /projects/{projectId}/ai.
輸入參數to必填from必填items必填project必填fallback