Manual
CLI
API
Log in Get started free

List languages

Lists the target languages of a project and how many translations of each are published.

Lists the target languages of a project and how many translations of each are published.

HTTP
GET /projects/{projectId}/languages

Access: Session token, or an API key with the projects:read scope.

Role: Any role in the project.

Path parameters #

ParameterDescription
projectIdThe id of the project.

Response 200 #

The languages.

JSON
{
  "totalKeys": 318,
  "languages": [
    { "code": "de-de", "status": "active", "done": 120 },
    { "code": "fr-fr", "status": "inactive", "done": 0 }
  ]
}

Response fields #

FieldTypeDescription
totalKeysintegerNumber of keys on the protected branch.
languageslist of objectThe target languages in the order of the project.
languages[].codestringThe language code.
languages[].statusstringactive, review or inactive.
languages[].doneintegerPublished translations on the protected branch.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe project does not exist in your organisation, you have no access to it, or projectId is not a UUID.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.