ai_translate_json
Translate a JSON locale file (i18n) — Translates the string values of a JSON object or array (an i18n locale file, UI strings, product copy) into any language while keeping keys and structure identical. Leaves numbers, URLs, emails, identifiers and chosen keys untouched, preserves placeholders like {name}, {{count}}, %s and HTML tags, and reports any string whose placeholders changed. Optional from=, context= and skip_keys=. Up to 200 strings / 8000 chars per call. Price: $0.008 USDC (Base, via x402).
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": {
"json": "<json>",
"to": "<to>"
},
"name": "ai_translate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | target language, e.g. Spanish or de | |
| json | Yes | URL-encoded JSON object or array of strings, e.g. an i18n file with keys greeting = Hello, {name}! and cart.empty = Your cart is empty |