add_translation_key
Add missing translation keys to i18next files, specifying languages, namespaces, and nested paths, with optional overwrite and backup.
Instructions
Add a specific translation key with values to specified languages and namespaces
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>",
"translations": "<translations>"
},
"name": "add_translation_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Translation key to add (supports nested keys with dot notation) | |
| overwrite | No | Overwrite existing keys | |
| namespaces | No | Target namespaces (optional, defaults to all namespaces) | |
| createBackup | No | Create backup before making changes | |
| translations | Yes | Object with language codes as keys and translation values |