add_translations
Add translations to existing terms in a specified language without overwriting current translations. Supports single and plural forms with optional context matching for accurate term association.
Instructions
Add translations for EXISTING terms in a language (does not overwrite). Use this only when terms already exist. If you need to create new terms AND add their translations, prefer using add_terms_with_translations instead. Important: if a term was created with a context, you must provide the same context value to match that term.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
items | Yes | ||
language | Yes | ||
project_id | No |
Input Schema (JSON Schema)
{
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"content": {
"default": "",
"type": "string"
},
"context": {
"type": "string"
},
"fuzzy": {
"type": "boolean"
},
"plural": {
"additionalProperties": false,
"properties": {
"few": {
"type": "string"
},
"many": {
"type": "string"
},
"one": {
"type": "string"
},
"other": {
"type": "string"
}
},
"type": "object"
},
"term": {
"minLength": 1,
"type": "string"
}
},
"required": [
"term"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"language": {
"minLength": 2,
"type": "string"
},
"project_id": {
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"language",
"items"
],
"type": "object"
}