Translate JSON
translate_jsonTranslate a locale JSON object into one or more languages while preserving key structure and placeholders. Provide source content and target language codes; requires your Anthropic or OpenAI API key.
Instructions
Translate an i18n locale JSON object to one or more target languages, preserving structure and placeholders. Requires your own LLM key (ANTHROPIC_API_KEY/OPENAI_API_KEY). For key-free work use the validation tools. Legacy: the MCP client's model via sampling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target language code(s), comma-separated, e.g. "es,fr,de" | |
| from | No | Source language code (default: en) | |
| model | No | Override the provider default model | |
| content | Yes | The source locale as a JSON string, e.g. {"greeting":"Hello {{name}}"} | |
| provider | No | Force a provider: anthropic or openai. Omit to auto-detect from the environment. |