translate_readme
Translate a README.md file into seven languages and write localized README..md files locally, refreshing language nav bars; return a per-language status summary, not translated text.
Instructions
Translate a README.md FILE into all 7 supported languages and WRITE the README..md files to disk (ja, zh, es, fr, hi, it, pt-BR), refreshing the language nav bar in the source and each translation. Runs entirely locally on the GPU via Ollama. Returns a STATUS SUMMARY — per-language ok/fail, timings, and the files written — not the translated text. Use this to localize a repo README; use translate_markdown instead when you want translated content returned to you.
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": {
"readmePath": "<readmePath>"
},
"name": "translate_readme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Model tier (default "quality"): "quality" = translategemma:27b (best, slower), "bulk" = translategemma:12b (faster — use for many files / bulk runs), "draft" = translategemma:2b (fastest, lowest quality). Ignored when `model` is set. | |
| model | No | Explicit Ollama model — overrides `tier` (e.g. "translategemma:27b"). | |
| navBar | No | Inject/refresh the language nav bar in the source + translated READMEs (default: true). | |
| languages | No | Subset of target language codes (default: all 7 — ["ja","zh","es","fr","hi","it","pt"]). | |
| onLostSpan | No | What to do when a protected span (inline code, a protected term such as XLS-30 or Kimi-K3, or an "N of M" count) is missing from a translation: "report" (default) lists it with the result, "fail" makes it an error. | |
| readmePath | Yes | Absolute path to the source README.md file to translate. | |
| concurrency | No | Max concurrent language translations (default: 2, max: 3). | |
| onUntranslated | No | What to do when prose (a sentence of 6 or more words) comes back identical to the English after its one retry: "report" (default) lists it with the result, "fail" makes it an error. |