Add a language and translate it
add_localeUse this when someone asks to add a new language to a project and translate their strings into it. Returns the updated language list and how many strings were machine-translated, one per key, all before anything is saved, so a very large project can time out. Not for a language the project already has.
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": {
"project": "<project>",
"locale": "<locale>"
},
"name": "add_locale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Translation model id; defaults to gpt-6-luna | |
| locale | Yes | Locale code to add, such as it or pt-BR | |
| context | No | Note applied to every translation in this run, up to 600 characters | |
| project | Yes | Project id or name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | Yes | ||
| status | Yes | ||
| locales | Yes | ||
| project | Yes | ||
| translationCount | Yes |