Purpose
Shipi18n is used to catch "broken translations" before release. The repository's stated motivation is: generating translations is no longer hard—TMSs, other tools, or AI agents can all fill in language files—but nobody checks the results; most existing checks only compare key sets, which can find missing keys but cannot find translations where "the keys are all present, the placeholders are intact, but the meaning is completely reversed." Shipi18n is positioned as this missing gate, split into two layers: deterministic checks and semantic checks.
Main capabilities
Deterministic checks (offline, no key required)
- Placeholders dropped or renamed:
{name}、{{count}}、%{name}、%s、%d、%1$s、%@、$t(...), HTML, etc. - Plural forms: missing separators, or missing forms required by the language (such as few/many in Polish, two in Arabic), covering ICU, i18next keys, Rails, Android, and
.xcstrings. - Invalid ICU MessageFormat.
- Missing keys and orphan keys, keys written more than once in the same JSON object, empty values, and untranslated strings.
- Coverage statistics by language.
Semantic checks (using your own LLM key)
- LLM-as-judge reviews only the keys that changed, using multiple rounds of majority voting, because single-round review scores are unstable.
- Reports mistranslations, omissions, and additions. By default it is advisory only: it warns but does not fail the build.
- Measurement results given by the repository: on a 228-pair corpus committed before the reviewer was written, with the threshold fixed in advance, it caught 54/54 deliberately planted errors (100%), produced 12 false positives on 168 clean pairs (7.1%), and found 6/6 glossary violations; using claude-haiku-4-5, 3 rounds, about 59k tokens, 156 seconds, reproduced in two independent runs on 2026-08-16 and 2026-08-17. Label accuracy went from 100% to 98.1% between the two runs, and the official guidance is to treat it as a range rather than a constant. The evaluation framework is located at
evals/semantic/, and you can run it against your own model.
Everyday usability
- Supported formats: JSON (i18next, vue-i18n, next-intl, flat or nested), YAML (including Rails), Flutter
.arb、Apple.xcstrings、Androidstrings.xml、gettext.po/.pot, XLIFF 1.2/2.0, including specifiers such as%@/%lld. - CI-native: correct exit codes (0 means clean, 1 means problems found with a one-line fix suggestion, 2 means usage error),
--fail-on、--min-coverage, SARIF (GitHub PR annotations) and JUnit output; output formats can be text, JSON, SARIF, or JUnit. - Easy to adopt in existing projects:
--baselineaccepts the current backlog and fails only on newly found problems (Stylelint/RuboCop pattern);--severitycan adjust or silence per rule (error|warning|info|off). - Runtime is not limited to Node: you can use the GitHub Action, a pre-commit hook, or the Docker image
ghcr.io/shipi18n/cli(GitLab / Bitbucket / Jenkins / local), with no Node toolchain required. - WordPress
.po↔ JED sync:shipi18n wp-syncchecks JS translation JSON that has fallen out of sync withwp i18n make-jsonbecause.powas not re-run. - Privacy pre-check:
--semanticwithholds strings containing secrets or PII (keys, card numbers, email addresses) before sending content to the LLM;--detect-secretsCan run standalone without calling an LLM. - Protect manual edits:
shipi18n lockRecord manually confirmed translations and warn when content overwrites them or the source text changes;.shipi18n/locks.jsonOnly hashes are stored, safe to commit, and these findings are warnings that do not block the pipeline. - Translation: vendor-agnostic, structure-preserving, incremental, with built-in Anthropic and OpenAI; any object with a
complete(prompt)method can serve as an adapter; only newly added or changed keys are sent to the model.
Usage
- In-editor checks (no API key required):
@shipi18n/mcpbrings checks to any MCP client; its validation tools do not call models, so no key is needed at all; Claude Code needs one line of config, and Claude Desktop or other MCP clients just need the config pasted in. Example prompt: "Check ./locales against English and tell me what's broken in Spanish."review_localesalso requires no key: it hands translation pairs and review criteria to your agent, which uses its existing model to reason about semantics. - Checks in CI (no key required): run on every push, taking effect on translations from any source (TMS, other tools, agents, humans).
- Semantic review: requires a vendor SDK and CLI installed side by side in your own environment, using your own key.
- Example projects:
examples/contains runnable projects — react (Vite + react-i18next), nextjs (App Router), vue (vue-i18n), nodejs (@shipi18n/core); enter the directory, install, and run its check/translate scripts. - Repository development: pnpm + turbo monorepo, versions managed with Changesets (
pnpm changeset);pnpm install && pnpm testruns 105 tests with a mock adapter, no API key required.
When to use
- Multilingual products adding a gate on language files in CI, especially for teams whose translations are mass-produced by AI agents or TMS and lack human proofreading.
- Projects that need to cover formats beyond JSON (Flutter, iOS, Android, gettext, XLIFF, Rails YAML).
- Developers who want agent-assisted troubleshooting of translation issues in the editor but don't want to pay for model calls for structural checks.
- Localization workflows that need to protect manually refined translations from being overwritten by later batch runs.
Limitations
- Not a hosted service, nor a TMS: no accounts, dashboards, or pricing (the earlier hosted translation API has been retired).
- Not a library importable from Python or Ruby, but a CLI runnable in any CI.
- Without adding
--semantic, only structure is checked, not whether translations read naturally. - Semantic review is advisory by default and will not fail the build; its accuracy is a model-measured value and should be treated as a range rather than a fixed constant.
- Beyond the above, specific install commands, MCP config snippets, and translation commands are not fully given in the materials and are not provided here.