Add a language
add_languageAdds a language: puts it in targetLocales in localize.config.json (creating the file when missing) and translates every message into it. Needs a localize.dev API key. Send the files in files; nothing is read from or written to your disk. The answer's files are the ones to create or overwrite, each with its whole new content: write them back unchanged.
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": {
"files": "<files>",
"locale": "<locale>"
},
"name": "add_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Monorepo: the app to work in (e.g. apps/web), relative to the repository root. Default: the root. | |
| files | Yes | The project files this call needs, with paths relative to the project root: the UI files to work on, package.json, localize.config.json when there is one, and the existing locale files (for example locales/en.json and locales/es.json). Leave out node_modules, build output and binary files. | |
| locale | Yes | BCP 47 code, e.g. "ja", "pt-BR". |