
glot
io.github.MattJeff由 GitHub 帳號 MattJeff 發布v0.4.0更新於 Nov 2, 2026
AI-native i18n: live string context, validated translations, glossary for your app catalogs
概覽
glot 是一套本機 i18n 工具鏈,其 MCP 模式把翻譯鍵、使用位置、術語表與附驗證的加字工具交給編碼助理。
- 可以做什麼
- 向助理提供應用程式翻譯鍵及其使用位置(檔案:行號、介面角色)與儲存庫術語表
- 透過與 CLI 相同的驗證器新增或設定字串,強制檢查佔位符、複數與術語規則
- 搭配周邊 CLI 流程:初始化、把硬編碼介面字串抽成鍵、只翻譯增量、檢查語系檔
- 在執行中的應用程式裡量測鍵的文字框寬度,並縮短溢出的譯文
- 維護鎖定檔,未經明確強制不會覆寫手動修改
- 適用情境
- 適合希望編碼助理直接在專案中進行在地化,且要求對佔位符、CLDR 複數、術語與像素寬度做確定性檢查、而非直接信任模型輸出的情境。
- 執行需求
- 以本機 stdio 程序執行,通常透過 npx glot-i18n 啟動,需要 Node.js。翻譯需要 LLM 金鑰:ANTHROPIC_API_KEY,或依 glot.toml 使用 OPENAI_API_KEY,也支援任意 OpenAI 相容端點;context、check、add 不需要金鑰。儲存庫中需有 glot.toml 設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 glot,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
glot
Your coding agent localizes your app. Deterministic code guarantees that nothing broken or too long lands in your catalogs.
The real glot translate binary. The LLM is scripted to get three strings wrong on its first pass; every refusal and message is glot's. Reproduce it, or rerun it with a real model doing the retries: docs/launch/record/refusal.sh.
Or all of it in one idempotent step: npx glot-i18n localize --yes --targets fr,de (init if needed → i18nize → translate → check).
Guarantees
Checked by code on every LLM output, on glot set, in the overlay and in CI (glot check). A refused string goes back to the model with the exact reason (2 retries, then the fallback model); if it still fails, nothing is written.
Works with the i18n library you already use, adds no runtime, bring your own LLM key (Anthropic, OpenAI, any OpenAI-compatible endpoint). MIT.
More: Docs (concepts, CLI, MCP, integrations & GitHub Action, agent skill, AI-translation provenance, FAQ & costs) · Labs (SEO, database content, emails/images, task parity, plural coverage…) · Self-hosted server (experimental) · Demo app · Architecture
來源:README.md,提交 a35a2d4
工具
0版本歷史
2- v0.4.0最新Oct 18, 2026
- v0.3.0Oct 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分