Update translations for existing key
PUT/v2/projects/:projectId/translations
Sets translations for existing key
Request
Path Parameters
- application/json
Body
required
Key name to set translations for
The namespace of the key. (When empty or null default namespace will be used)
translations objectrequired
Object mapping language tag to translation
Object mapping language tag to translation
List of languages to return translations for.
If not provided, only modified translation will be provided.
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
Id of key record
Name of key
The namespace of the key
translations objectrequired
Translations object containing values updated in this request
property name* TranslationModel
Translations object containing values updated in this request
Id of translation record
Translation text
Possible values: [UNTRANSLATED
, TRANSLATED
, REVIEWED
, DISABLED
]
State of translation
Whether base language translation was changed after this translation was updated
Was translated using Translation Memory or Machine translation service?
Possible values: [GOOGLE
, AWS
, DEEPL
, AZURE
, BAIDU
, TOLGEE
]
Which machine translation service was used to auto translate this
{
"keyId": 0,
"keyName": "this_is_super_key",
"keyNamespace": "homepage",
"keyIsPlural": true,
"translations": {
"en": {
"id": 100000003,
"text": "This is super translation!"
}
}
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string