String Translations

Add Translation

Required scopes: project.translation (Read and Write).

post/projects/{projectId}/translations

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

Request body

stringIdinteger required

String Identifier. Get via List Strings

languageIdstring required

Language Identifier. Get via Project Target Languages

textstring required

Translation text

pluralCategoryNamestring

Plural form. Acceptable keys are zero, one, two, few, many, and other

Note: Will be saved only if the source string has plurals and pluralCategoryName is equal to the one available for the language you add translations to

addToTmboolean

Defines whether to add translation to TM

provider'tm' | 'global_tm' | 'google' | 'microsoft' | 'crowdin' | 'deepl' | 'amazon' | 'google_automl' | 'modernmt' | 'custom_mt' | 'ai' nullable

Translation provider type. Required when providerId or isPreTranslated is specified

Note: global_tm value can't be used with providerId in same request

providerIdinteger

Provider specific identifier. Get via:

  • If provider is tm - List TMs
  • If provider is ai - List AI Prompts
  • If provider is google, microsoft, crowdin, deepl, amazon, google_automl, modernmt or custom_mt - List MTs

Note: Can't be used if provider value is global_tm

isPreTranslatedboolean

Defines whether this is an auto-translated translation

Example request

{
  "stringId": 35434,
  "languageId": "uk",
  "text": "Цю стрічку перекладено",
  "pluralCategoryName": "few",
  "provider": "tm",
  "providerId": 123,
  "isPreTranslated": true
}

Response

Translation was successfully added

TranslationResource required

Base schema of resource container. Container is a wrapper object that contains payload in required data property and provides space for adding any other metadata.

Changes

No recorded changes to this operation across all 1 revision of this API.