Fill missing translations
translateFills in missing translations, and redoes ones whose source text changed, in the existing locale files (JSON, YAML, .po, .arb, strings.xml, .xcstrings, .strings, messages.json). Code is not changed. 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>"
},
"name": "translate"
}
}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. | |
| locales | No | Languages to translate into, creating files as needed (default: the languages already there). |