Skip to main content
Retrieve the translations of one language as a flat map

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

lang
string
required

Code of the language to load the texts in.

Minimum string length: 1
Pattern: ^[a-z][a-z-]+$
Example:

"en"

Query Parameters

allowFallbackLanguage
boolean
default:true

Falls back to the English text for keys the requested language has no value for. Turn it off to leave such keys out of the map entirely.

Example:

true

namespaces
string[]

Namespaces to load, a namespace being the part of a translation key before the colon. Give one or several of them to load only the part of the dictionary a screen actually needs; omit it to load everything the caller may see.

Translations namespace (optional).

Maximum string length: 128
Pattern: ^[a-z0-9]+([_-]{1}[a-z0-9]+)*$

Response

Returns the translations of the language as a flat key-to-text map.

Translated texts keyed by translation key, ready to be handed straight to a client's translation library. Only keys that resolved to a non-empty text are present.

{key}
string