shipi18n
v2.3.2Check locale files for broken placeholders, plurals and missing keys.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_locales Check locale files
Validate translated locale files against the source language: missing/orphaned keys, dropped or invented placeholders, collapsed plurals, empty values, untranslated copy. Reads JSON, YAML (incl. Rails), Flutter ARB, Apple .xcstrings, Android strings.xml, gettext .po and XLIFF. Deterministic — no API key and no model call required.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a locale folder or file: JSON (flat or nested, i18next/vue-i18n/next-intl), YAML incl. Rails config/locales, a Flutter .arb folder, an Apple .xcstrings file, an Android res/ folder, gettext .p… |
glossaryPath | string | Path to a glossary JSON file |
ignoreKeys | string | Comma-separated '*' globs of keys to silence |
source | string | Source language code |
check_glossary Check glossary compliance
Enforce do-not-translate terms and locked per-language translations across a locale tree. Deterministic string matching — no API key and no model call required.
| Parameter | Type | Description |
|---|---|---|
glossaryPath * | string | Path to a glossary JSON file |
path * | string | Path to a locale folder or file: JSON (flat or nested, i18next/vue-i18n/next-intl), YAML incl. Rails config/locales, a Flutter .arb folder, an Apple .xcstrings file, an Android res/ folder, gettext .p… |
source | string | Source language code |
diff_locales Diff locales against the source
Answer "what needs translating?": per language, the keys missing from the translation and the keys present that no longer exist in the source. No API key required.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a locale folder or file: JSON (flat or nested, i18next/vue-i18n/next-intl), YAML incl. Rails config/locales, a Flutter .arb folder, an Apple .xcstrings file, an Android res/ folder, gettext .p… |
lang | string | Limit to one language |
source | string | Source language code |
review_locales Get translation pairs for semantic review
Return source/translation pairs plus review criteria so YOU can judge translation quality with your own reasoning. The server performs no model call and needs no API key. Structurally broken keys are excluded — run check_locales for those.
| Parameter | Type | Description |
|---|---|---|
lang * | string | Language to review |
path * | string | Path to a locale folder or file: JSON (flat or nested, i18next/vue-i18n/next-intl), YAML incl. Rails config/locales, a Flutter .arb folder, an Apple .xcstrings file, an Android res/ folder, gettext .p… |
limit | integer | Maximum pairs to return |
source | string | Source language code |
list_languages List Languages
List the language codes and names Shipi18n recognizes (any BCP-47 code works; these have friendly names).
check_placeholders Check Placeholders
Verify a translated string preserves all placeholders from the source (no LLM call).
| Parameter | Type | Description |
|---|---|---|
source * | string | The source string |
translation * | string | The translated string to check |
translate_json Translate JSON
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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The source locale as a JSON string, e.g. {"greeting":"Hello {{name}}"} |
to * | string | Target language code(s), comma-separated, e.g. "es,fr,de" |
from | string | Source language code (default: en) |
model | string | Override the provider default model |
provider | string | Force a provider: anthropic or openai. Omit to auto-detect from the environment. |
translate_file Translate File
Read a JSON locale file from disk, translate it into one or more languages, and write <lang>.json files. Set incremental=true to reuse existing output files and only translate new/missing keys.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the source locale JSON file, e.g. locales/en.json |
to * | string | Target language code(s), comma-separated, e.g. "es,fr,de" |
from | string | Source language code (default: en) |
incremental | boolean | Reuse existing <lang>.json and only translate new keys |
model | string | |
outDir | string | Output directory (default: same directory as the source file) |
provider | string |