Skip to main content
Update a translation key in one language

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

key
string
required

Name of the translation key to update.

Required string length: 1 - 256
Pattern: ^[a-z0-9]+([_-]{1}[a-z0-9]+)*:([a-z0-9]+([_-]{1}[a-z0-9]+)*\.)*[a-z0-9]+([_-]{1}[a-z0-9]+)*$
Example:

"common:name"

lang
string
required

Code of the language whose text is rewritten.

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

"en"

Body

application/json
value
string | null

Text to write for this language. It has to carry an actual text - this endpoint sets a translation, it cannot clear one.

Example:

"Circularo"

version
integer | null

Version the key carried when you read it, so a change someone made in the meantime is not overwritten.

Required range: x > 0
Example:

6

Response

Returns the text of the key in the requested language.

value
string | null

Translated text of the key in the requested language. It is absent while nobody has translated the key into that language.

Example:

"Circularo"