add_terms_with_translations
Create new translation terms with their corresponding translations in a single operation, ensuring proper linkage between terms and translations for multilingual content management.
Instructions
PREFERRED METHOD: Create multiple new terms and add their translations in one operation. Use this instead of calling add_terms followed by add_translations separately. This ensures terms and translations are properly linked (especially important when using context).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
items | Yes | ||
language | Yes | ||
project_id | No |
Input Schema (JSON Schema)
{
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"context": {
"type": "string"
},
"reference": {
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"term": {
"minLength": 1,
"type": "string"
},
"translation": {
"additionalProperties": false,
"properties": {
"content": {
"default": "",
"type": "string"
},
"fuzzy": {
"type": "boolean"
},
"plural": {
"additionalProperties": false,
"properties": {
"few": {
"type": "string"
},
"many": {
"type": "string"
},
"one": {
"type": "string"
},
"other": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
},
"required": [
"term",
"translation"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"language": {
"minLength": 2,
"type": "string"
},
"project_id": {
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"language",
"items"
],
"type": "object"
}