Translations (single values)
Read one translation
One key's source value and its value in `locale`, by key name.
GET
One key's source value and its value in locale, by key name. Requesting the source locale returns the source in both cells.
deployTokenheader
AuthorizationBearer <token>A project deploy token, minted in the console under Settings, Developer, API tokens. Send the whole value, including the numeric prefix before the |. A token carries a set of abilities (push, pull, manage, read, write) and each operation requires one of them. Tokens do not inherit from each other: a manage token cannot read the glossary unless it also has read.
key*stringLength
length <= 500locale*stringLength
length <= 35The row.
application/json- response
row?One key, its source value and its value in the requested locale.
curl -X GET 'https://api.transglot.ai/v1/translations?key=string&locale=string'{ "row": { "id": 0, "name": "string", "description": "string", "is_plural": true, "max_length": 0, "tags": [ { "id": 0, "name": "string" } ], "source_tokens": { "kind": "simple", "spans": [ { "start": 0, "end": 0, "kind": "text" } ], "forms": { "property1": [ { "start": 0, "end": 0, "kind": "text" } ], "property2": [ { "start": 0, "end": 0, "kind": "text" } ] } }, "source": { "id": 0, "content": "string", "plural_forms": { "property1": "string", "property2": "string" }, "state": "ai_translated", "stale": true }, "target": { "id": 0, "content": "string", "plural_forms": { "property1": "string", "property2": "string" }, "state": "ai_translated", "stale": true, "content_hash": "string", "needs_review": true, "qa_score": 0, "mqm_score": 0, "qa_findings": [ { "category": "string", "severity": "string", "message": "string", "suggestion": "string" } ], "ai_confidence": 0, "authored_by_you": true } }}