Translations

Upload Translations

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

Use Import Translations instead.

post/projects/{projectId}/translations/{languageId}

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

languageIdstring required

Language Identifier. Get via Project Target Languages

Request body

storageIdinteger required

Storage Identifier. Get via List Storages

fileIdinteger

File Identifier for import. Get via List Files <br> Note: Required for content in all formats except XLIFF

importEqSuggestionsboolean

Defines whether to add translation if it's the same as the source string

autoApproveImportedboolean

Mark uploaded translations as approved

translateHiddenboolean

Allow translations upload to hidden source strings

addToTmboolean

Defines whether to add translation to TM

markAddedTranslationsAsDoneboolean

Strings marked as done follow your project's workflow and appear on the corresponding step

Example request

{
  "storageId": 13,
  "fileId": 2,
  "importEqSuggestions": true,
  "markAddedTranslationsAsDone": true
}

Response

Translations were successfully uploaded

Example response

{
  "data": {
    "projectId": 8,
    "storageId": 34,
    "languageId": "uk",
    "fileId": 56,
    "info": {
      "imported": {
        "strings": 10,
        "words": 150
      },
      "approved": {
        "strings": 5,
        "words": 75
      },
      "skipped": {
        "translation_eq_source": 2,
        "qa_check": 1,
        "ai_error": 6
      },
      "skippedQaCheckCategories": {
        "duplicate": 1,
        "spellcheck": 1
      }
    }
  }
}

Changes

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