Skip to main content

Create key or update translations

POST 

/v2/projects/:projectId/translations

Sets translations for existing key or creates new key and sets the translations to it.

Request

Path Parameters

    projectId int64required

Body

required
    key stringrequired

    Key name to set translations for

    namespace string

    The namespace of the key. (When empty or null default namespace will be used)

    translations objectrequired

    Object mapping language tag to translation

    property name* string

    Object mapping language tag to translation

    languagesToReturn string[]

    List of languages to return translations for.

    If not provided, only modified translation will be provided.

Responses

OK

Schema
    keyId int64required

    Id of key record

    keyName stringrequired

    Name of key

    keyNamespace string

    The namespace of the key

    keyIsPlural booleanrequired
    translations objectrequired

    Translations object containing values updated in this request

    property name* TranslationModel

    Translations object containing values updated in this request

    id int64required

    Id of translation record

    text string

    Translation text

    state stringrequired

    Possible values: [UNTRANSLATED, TRANSLATED, REVIEWED, DISABLED]

    State of translation

    outdated booleanrequired

    Whether base language translation was changed after this translation was updated

    auto booleanrequired

    Was translated using Translation Memory or Machine translation service?

    mtProvider string

    Possible values: [GOOGLE, AWS, DEEPL, AZURE, BAIDU, TOLGEE]

    Which machine translation service was used to auto translate this

Loading...