Get the project
The project the token belongs to: its name, source locale, every language with its progress, the key count and whether pushes translate on arrival.
The project the token belongs to: its name, source locale, every language with its progress, the key count and whether pushes translate on arrival. Accepts a token with any of push, pull or manage.
deployTokenAuthorizationBearer <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.
The project.
application/json- response
id?integername?stringslug?stringsource_locale?stringlocales?array<>Every language on the project, source included, sorted by locale.
keys_count?integerThe number of translation keys in the project.
message_syntax?stringHow the project reads message syntax when it checks strings.
"legacy""auto""icu"icu_dialect?string"icu4c""flutter"auto_translate?booleanWhether a source push starts a translation run on arrival.
first_run_pending?booleanWhether the project's first translation run is still waiting to be confirmed. While it is, a source push does not start a run.
curl -X GET 'https://api.transglot.ai/v1/project'{ "id": 12, "name": "Acme Web", "slug": "acme-web", "source_locale": "en", "locales": [ { "locale": "de", "name": "German", "rtl": false, "is_source": false, "progress": { "total": 1204, "reviewed": 310, "human": 42, "ai": 820, "empty": 32, "translated": 1172, "humanBacked": 352, "percent": 97 } }, { "locale": "en", "name": "English", "rtl": false, "is_source": true, "progress": null } ], "keys_count": 1204, "message_syntax": "auto", "icu_dialect": "icu4c", "auto_translate": true, "first_run_pending": false}