Project

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.

GET
/v1/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. Accepts a token with any of push, pull or manage.

Authorization

deployToken
headerAuthorizationBearer <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.

Response Body

The project.

application/json
  1. response
id?integer
name?string
slug?string
source_locale?string
locales?array<>

Every language on the project, source included, sorted by locale.

keys_count?integer

The number of translation keys in the project.

message_syntax?string

How the project reads message syntax when it checks strings.

Value in"legacy""auto""icu"
icu_dialect?string
Value in"icu4c""flutter"
auto_translate?boolean

Whether a source push starts a translation run on arrival.

first_run_pending?boolean

Whether 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}