
Shipi18n
io.github.Shipi18n由 GitHub 帳號 Shipi18n 發布v2.3.2更新於 Oct 25, 2026
Check locale files for broken placeholders, plurals and missing keys. Validators need no API key.
概覽
Shipi18n 的 MCP 伺服器讓 AI 助理檢查、比對與審閱語系檔案中的佔位符、複數與缺少鍵值問題,多數功能不需 API 金鑰。
- 可以做什麼
- 驗證語系檔案:找出遺失或改名的佔位符、被破壞的複數形式、無效的 ICU 訊息、缺少或孤立的鍵值、重複鍵值,以及空字串與未翻譯內容,支援 JSON、YAML、Flutter ARB、Apple .xcstrings、Android strings.xml、gettext 與 XLIFF 格式,並為每項問題提供修正建議與各語言覆蓋率。比對並審閱翻譯配對,review_locales 會把翻譯配對與審閱準則交給助理,由助理用自身模型判斷語意。可選地對變更的鍵值執行語意 LLM 評審,回報誤譯、漏譯與增譯。可選地翻譯語系檔案,流程與供應商無關、保留結構且支援增量。
- 適用情境
- 適用於維護多語系檔案、希望助理在發布前找出結構性錯誤,或判斷譯文是否保留原意的情境。適合譯文來自翻譯管理系統、其他工具、AI 代理或人工的專案,以及 Claude Desktop、Cursor、Claude Code 等編輯器。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 與 npx。驗證工具不需帳號或 API 金鑰。可選的語意評審與翻譯工具需要自備供應商金鑰,透過 ANTHROPIC_API_KEY 或 OPENAI_API_KEY 設定,並安裝對應的供應商 SDK。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Shipi18n,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Shipi18n
[CI] [npm] [MCP] [downloads] [License] [OpenSSF Scorecard] [Smithery]
Catch broken translations before you ship them. Shipi18n is an open-source check for locale files: it fails CI when a translation — from a human, a TMS or an AI agent — drops or breaks a placeholder, plural or key, and shows the exact fix.
- Detects: dropped or renamed placeholders (
{name},{{count}},%{name},%s,%1$s,%@), plurals whose separator was lost or that miss a form the language needs (Polish few/many, Arabic two — in ICU, i18next keys, Rails, Android and .xcstrings), invalid ICU MessageFormat, missing and orphaned keys, a key written twice in one JSON object, empty and untranslated strings. - Formats: JSON (i18next, vue-i18n, next-intl, flat or nested), YAML including Rails, Flutter ARB, Apple
.xcstrings, Androidstrings.xml, gettext.po, XLIFF. - Uploads anything? No. The check runs offline, on your machine or CI runner.
- Needs a key or account? No. Only the optional
--semanticreview andtranslateuse your own LLM key.
Exit 0 clean, 1 findings (each with a one-line fix), 2 usage error. Output as text, JSON, SARIF (GitHub PR
annotations) or JUnit.
A real run, not a mockup — docs/check-demo.tape reproduces it.
Choose your task
What it doesn't do
- It is not a hosted service or a TMS: no account, dashboard or pricing. (An earlier hosted translation API was retired.)
- It is not a library you import from Python or Ruby; it is a CLI you run from any CI.
- Without
--semanticit checks structure, not whether a translation reads well.
Found in the wild. The same command on a real project — Hoppscotch's Afrikaans locale as it was when we ran it (structural rules only; the missing-key noise switched off so the placeholder findings stand out):
{naam} is {name} translated; vue-i18n will never substitute it. We scan public repos, verify every finding by
hand against the source language, and send the fix upstream. Running tally, one row per repo:
shipi18n.com/oss — 95 repos scanned · 23 ship a verified broken string · 402 strings
verified by hand · fixed upstream in 8 repos.
Every false positive the scan exposed in our own checker became a fixture in evals/placeholders/corpus.jsonl first.
If the check catches something in your project, consider starring the repo — stars are how the next person with a broken
es.jsonfinds this.
Then, when you want the meaning checked, bring your own key. The judge needs a provider SDK alongside the CLI:
An LLM reads each pair and reports mistranslations, omissions and additions:
Every placeholder is intact and every key is present, so structural checks pass this file. Only reading it catches the bug. Advisory by default — it warns, it does not fail your build.
Measured, not asserted. On a 228-pair corpus committed before the judge was written (
60d699b) and with thresholds fixed first: 54/54 planted errors caught (100%) and 12/168 false positives on clean pairs (7.1%), with 6/6 glossary violations found. Reproduced on two independent runs (2026-08-16 and 2026-08-17) usingclaude-haiku-4-5, 3 passes, ~59k tokens in 156s. Label accuracy moved between runs (100% → 98.1%) — it is a model, so read these as a range, not a constant. The harness isevals/semantic/. Run it against your own model.
Nothing goes through our servers, because there are none. The only network call is from your machine to the provider you chose.
Packages
Why
Generating translations is a solved problem. Half a dozen good tools will fill your locale files, and
an agent will do it for free. Nothing checks the result. Your CI lints your JavaScript, typechecks
your types and runs your tests — and then ships a de.json that nobody has read, produced by a model
nobody audited.
The checks that do exist are structural: they diff key sets and stop there. That catches the missing key. It does not catch the translation that has every key and every placeholder and still tells your German users the opposite of what you meant.
Shipi18n is that missing gate, in two layers:
- Deterministic, offline, no key. Missing and orphaned keys, dropped or malformed placeholders
(
{{name}},{count},%s,%d,%1$s,$t(...),%{name}, HTML), collapsed plural forms, empty values, untranslated copy, coverage per language. - Semantic, with your own key. An LLM-as-judge pass over changed keys only, with multi-pass majority voting because single-pass judge scores are unstable. Reports mistranslation, omission and addition. Advisory by default — a QA tool that fails your build gets uninstalled.
Plus the parts that make it usable day to day:
- Formats beyond JSON. YAML (
.yaml/.yml), Flutter.arb, Apple.xcstrings, Androidstrings.xml, gettext.po/.pot, and XLIFF 1.2/2.0 — including%@/%lldspecifiers. - CI-native. Correct exit codes,
--fail-on,--min-coverage, SARIF for PR annotations, JUnit. - Adopts on a messy catalog.
--baselineaccepts today's backlog and fails only on new findings (the Stylelint/RuboCop pattern);--severitytunes or silences any rule (error|warning|info|off). - Runs anywhere, Node or not. GitHub Action,
a
pre-commithook, or the Docker imageghcr.io/shipi18n/clifor GitLab / Bitbucket / Jenkins / local — no Node toolchain required. See the CLI README. - WordPress
.po↔ JED sync.shipi18n wp-synccatches JS translation JSON that has drifted from the.pobecause nobody re-ranwp i18n make-json— a silent bug no other tool checks. - Privacy pre-flight. Before
--semanticsends anything to an LLM, a scan withholds any string carrying a secret or PII (keys, cards, emails);--detect-secretsruns it standalone with no LLM. - Hand-edits are protected.
shipi18n lockrecords the translations a human blessed and warns when anything overwrites them, or when the source moves underneath them. - Keyless from your editor. The MCP server's validators call no model at all.
- It also translates. Provider-agnostic, structure-preserving, incremental — Anthropic and OpenAI
in the box, and any object with a
complete(prompt)method is a valid adapter.
Check from your editor — no API key
@shipi18n/mcp brings the checks to any MCP client. The validation tools call no model, so they need
no key at all.
Claude Code — one line:
Claude Desktop / any MCP client — paste the config:
"Check ./locales against English and tell me what's broken in Spanish."
review_locales goes further without needing a key either: it hands your agent the translation pairs
and the review criteria, and your agent reasons about meaning with the model it already runs.
Check in CI — no key needed
The checks work on translations from any source — a TMS, another tool, an agent, a human. Run it on every push:
Missing keys, dropped placeholders, collapsed plurals, empty values and untranslated copy — reported
as human output, JSON, SARIF (GitHub PR annotations) or JUnit. Works on plain JSON trees, YAML,
Flutter .arb, Apple .xcstrings, Android strings.xml, gettext .po/.pot and XLIFF (1.2/2.0).
Deterministic and offline: no LLM, no API key.
Protect hand-edited translations
Fix a string by hand, lock it, and check warns you if anything ever overwrites it — or if the
English moves underneath it:
.shipi18n/locks.json stores hashes only, is safe to commit, and these findings are warnings —
protecting human work must never block a pipeline. Details in the
CLI README.
It also translates
Checking works on translations from anywhere, but if you want Shipi18n to produce them too, it does — with your key, your model, and nothing in between.
Or from Node (same SDK requirement):
Structure-preserving, placeholder-safe and incremental — only new or changed keys are sent to the model. Then check the result with the same tool.
Examples
Runnable projects in examples/ — react (Vite + react-i18next),
nextjs (App Router), vue (vue-i18n), and
nodejs (@shipi18n/core). cd into one, install, and run its check/translate scripts.
Development
This is a pnpm + turbo monorepo.
Changesets manage versioning: pnpm changeset to add one.
Contributing
Issues and pull requests are welcome — see CONTRIBUTING.md. pnpm install && pnpm test
runs 105 tests against a mock adapter, so you need no API key to work on this.
License
Apache-2.0 © Shipi18n. See NOTICE.
來源:README.md,提交 23a94ec
工具
0版本歷史
4- v2.3.2最新Oct 10, 2026
- v2.3.1Oct 4, 2026
- v2.3.0Oct 3, 2026
- v2.1.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分