SuperAPIAI Directory

shipi18n

github.com · AI coding

Shipi18n is an open-source localization file checking tool licensed under Apache-2.0, offering a CLI, an MCP server, and a GitHub Action. No account and no server are required; checks run offline. It can detect missing translations or renamed placeholders, collapsed plural forms, ICU format errors, missing and orphan keys, duplicate keys within the same JSON, empty strings, and untranslated text, and can report coverage statistics by language; with your own LLM key, it can also perform semantic review and translation of changed keys.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsiOS · Android · Linux · API

About this tool

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、Android strings.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:--baseline accepts the current backlog and fails only on newly found problems (Stylelint/RuboCop pattern);--severity can 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-sync checks JS translation JSON that has fallen out of sync with wp i18n make-json because .po was not re-run.
  • Privacy pre-check:--semantic withholds strings containing secrets or PII (keys, card numbers, email addresses) before sending content to the LLM;--detect-secrets Can run standalone without calling an LLM.
  • Protect manual edits:shipi18n lock Record manually confirmed translations and warn when content overwrites them or the source text changes;.shipi18n/locks.json Only 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/mcp brings 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_locales also 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 test runs 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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools