writeTranslation
Update or add translations for specific keys in Weblate projects by specifying project, component, language, and translation value. Mark translations as approved for immediate use.
Instructions
Update or write a translation value for a specific key
Input Schema
Name | Required | Description | Default |
---|---|---|---|
componentSlug | Yes | The slug of the component | |
key | Yes | The translation key to update | |
languageCode | Yes | The language code (e.g., en, es, fr) | |
markAsApproved | No | Whether to mark as approved (default: false) | |
projectSlug | Yes | The slug of the project | |
value | Yes | The new translation value |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"componentSlug": {
"description": "The slug of the component",
"type": "string"
},
"key": {
"description": "The translation key to update",
"type": "string"
},
"languageCode": {
"description": "The language code (e.g., en, es, fr)",
"type": "string"
},
"markAsApproved": {
"default": false,
"description": "Whether to mark as approved (default: false)",
"type": "boolean"
},
"projectSlug": {
"description": "The slug of the project",
"type": "string"
},
"value": {
"description": "The new translation value",
"type": "string"
}
},
"required": [
"projectSlug",
"componentSlug",
"languageCode",
"key",
"value"
],
"type": "object"
}