
I1n
io.github.Pakvothe由 GitHub 账号 Pakvothe 发布v1.4.7更新于 Oct 24, 2026
Agent-complete localization: extract strings, push keys, AI-translate, pull type-safe TS types.
概览
让 AI 助手提取硬编码字符串、推送翻译键、用 AI 翻译,并把带类型的语言文件拉回代码库。
- 可以做什么
- i1n MCP 服务器把 i1n.ai 的本地化流程封装成工具供编码助手调用。工具包括 i1n_extract_and_translate、i1n_push、i1n_pull、i1n_translate、i1n_add_language、i1n_check、i1n_search、i1n_status 和 i1n_setup_bridge。推送使用三方差异比较,保留仪表板上的修改;拉取会写入语言文件并生成 TypeScript 类型。check 可离线校验缺失键、占位符错误和覆盖率。
- 适用场景
- 适合把翻译文件保存在代码库中的项目,让助手完成组件国际化、填充各语言文案或与 i1n 仪表板同步键值。也适合产品、运营或内容人员在仪表板改文案、开发人员在 git 中工作的团队。
- 运行要求
- 通过 npx i1n mcp 以 stdio 在本地运行,需要 Node.js 和 npm。同步与翻译需要 i1n 账号和 API 密钥;i1n init 负责认证并在本地保存配置。推送、拉取和翻译需要网络,i1n check 完全离线。
安装
README
i1n.ai
AI localization platform for product and engineering teams. Alternative to Lokalise, Phrase and Crowdin. Dashboard, CLI and MCP server.
[npm] [license] [MCP] [Listed on MCP Servers] [Security: DeepSec] [SaaSHub]
This repo is the open source (MIT) CLI, SDK and MCP server for i1n.ai. Translation files stay in your repo. Your AI agent extracts strings, pushes them, translates them with your terminology rules and pulls typed keys back. Product, ops and content people edit the copy in the dashboard instead of sending you tickets; the next i1n pull brings their changes into the repo.
Free plan · No credit card · i1n.ai · Docs
Who it's for
- Engineers: keep locale files in git, sync with
i1n push/i1n pull, get typed keys (i1n.d.ts) and a CI check that fails on missing keys or broken placeholders. - AI agents (Claude Code, Cursor, Windsurf, Codex): the MCP server exposes the loop as tools, so "internationalize this component" ends with
t('key')calls and every locale filled in. - Product, ops and content teams: edit copy in every language from the dashboard, with terminology rules, a review queue and roles. A push never silently overwrites their edits (three-way diff).
The loop
- Extract: the agent finds hardcoded strings and calls
i1n_extract_and_translate. - Push: keys go to i1n with a three-way diff, so dashboard edits are preserved.
- Translate: AI translation into 182 languages, with placeholder protection, brand voice and terminology rules.
- Pull: locale files plus generated TypeScript types land back in the repo.
- Check:
npx i1n check --min-coverage 95in CI catches drift before it ships.
Works with your current library through Bridge Mode (i18next, next-intl, vue-i18n, react-intl). Formats: JSON, ARB, Android XML, iOS .strings, YAML.
In production at belo, a LatAm fintech with 3.5M users, where around 30 product and ops people use the dashboard.
📦 Install
Supports npm, pnpm, yarn, and bun.
🏁 Quick Start
✨ Key Features & Commands
🛠️ i1n init
Interactive setup that prepares your workspace.
- Authenticates via API key.
- New? If you don't have a key yet, the CLI provides clear guidance on how to get started.
- Auto-detects frameworks (Next.js, Vite, Expo, Flutter, Rails, etc.).
- Saves configuration to
i1n.config.json(automatically ignored via.gitignore). - AI Orchestration: Optionally sets up rules for your AI coding tools.
⬆️ i1n push
Syncs your local translations to i1n.
- Detects new keys and source changes.
- Smart Translate: Offers to translate missing keys with a cost estimate before proceeding.
- Efficient caching layer — repeated translations cost a fraction of fresh ones.
- Three-way diff — push only sends the (key, lang) pairs you actually changed, never overwriting edits made via the dashboard or by other teammates. See Team workflow for the full conflict model.
Flags:
--translate [langs]— trigger AI translation after push (e.g.--translate es,fr,ja)--strategy <mode>— how to handle real conflicts:interactive(default in TTY),ours,theirs,abort--force— shorthand for--strategy ours(overwrite the server with your local values; destructive)
⬇️ i1n pull
Downloads translations and generates type-safe IDs.
- Updates local locale files in your configured format.
- Generates
i1n.d.tsfor full IDE autocomplete.
📊 i1n limits
Real-time usage tracking.
- View your current plan and credit usage.
- Monitor active language slots and available capacity.
✅ i1n check
Catch broken translations before they ship. Built for CI.
- Detects missing keys per language, broken interpolation placeholders (
{{count}}lost in translation), empty values, and malformed files. --min-coverage 95fails the build when translation coverage drops below your threshold.--jsonfor tooling. Exit codes:0clean,1errors found,2config problem.- 100% offline — no API calls, no secrets needed in CI.
🧠 i1n setup-ai
Turns your IDE into a localization expert.
- Generates project-specific rules for Cursor (
.mdc), Claude Code (CLAUDE.md), Windsurf, and more. - Ensures AI agents follow your naming conventions, file structure, and brand voice.
🔌 i1n mcp
MCP server for AI coding assistants.
Starts a Model Context Protocol server that lets Cursor, Claude Code, Windsurf, and other AI assistants execute i1n commands directly from your IDE.
9 tools available:
Example: tell your AI agent "internationalize this component":
- The agent reads your file and identifies hardcoded strings
- It calls
i1n_extract_and_translatewith the extracted strings - i1n pushes the keys, translates to all active languages, generates types
- The agent rewrites your component with
t('key')calls
👥 Team workflow
i1n is designed for teams where multiple people edit translations in parallel — devs in different branches, copywriters in the dashboard, AI agents via MCP. i1n push is safe to run without worrying that your local working tree might pulverize someone else's edits.
How push decides what to send
Before every push, the CLI:
- Reads your local locale files (
L). - Asks the server which keys exist and when each was last modified (cheap metadata-only call, ~50× smaller than a full pull).
- If anything moved on the server since your last sync, fetches the full server state (
S). - Computes a three-way diff per
(namespace, key, lang)against the last baseline you synced (P, stored inlocales/.i1n-push-state.json).
For each (key, lang) the diff places it in one of these buckets:
Only the languages that genuinely changed locally are sent. Languages you didn't touch are not in the payload, so the server's per-language merge preserves them. No more "my push silently overwrote yield_rate that I never even opened".
When there's a real conflict
A real conflict means you and someone else both edited the same (key, lang) to different values since the last sync. The CLI shows each one and asks you to pick:
- Local → push your value, overwrite the server.
- Server → discard your local, auto-pull the server's value into your file.
- Abort → exit; nothing is pushed.
For batch / CI / non-interactive environments, pass a strategy:
In non-TTY contexts (e.g. CI without a strategy flag), push aborts with a diff of the conflicts so you can resolve in code.
Auto-pulling server-only changes
If a teammate or someone in the dashboard updated a key you never touched, the server's value is automatically written into your local file at push time and your i1n.d.ts is regenerated if needed. Your working tree ends up reflecting reality — your git diff will show the bring-in so you can commit it alongside your own changes.
MCP push (AI agents)
The MCP i1n_push tool runs the same diff but defaults to abort on conflict because an AI agent should not silently pick a winner. Conflicts are reported in the response so the agent can decide to pull, ask you, or resolve manually before retrying.
Fresh checkouts
locales/.i1n-push-state.json is gitignored by design — it's working-tree state, like .git/index. On a fresh clone or new branch where the file doesn't exist, the baseline is synthesized from the server. Any local divergence from the server is then treated as a conflict (the CLI can't tell whether you edited locally or have stale data). Run i1n pull first if you just cloned and want to bring everything in cleanly.
📁 Supported Formats
🧩 SDK Usage
The i1n package includes a runtime SDK for web and mobile JS/TS projects. You can use it in two ways:
Standalone Mode — Replace your i18n library
Use the i1n native engine directly. No external dependencies needed.
Key resolution works with both nested and flat structures automatically — use whatever format your project prefers.
Bridge Mode — Keep your library, add type safety
Already using i18next, vue-i18n, or react-intl? Connect it to i1n with one line and get full autocompletion.
Works with any library:
- vue-i18n:
registerI1n((key, params) => i18n.global.t(key, params)) - react-intl:
registerI1n((key, params) => intl.formatMessage({ id: key }, params)) - Custom:
registerI1n((key) => myLookup(key))
Pluralization
Define plural variants with _zero, _one, _other suffixes:
Interpolation
Three syntaxes supported universally: {var}, {{var}}, %{var}
JavaScript (without TypeScript)
The SDK works in plain JS — you just don't get autocompletion:
⚛️ React / Preact Integration
For a "plug and play" experience, use this minimalist provider pattern.
Usage:
Non-JS Platforms
Flutter, Android, and iOS projects don't use the SDK. They use the translation files (.arb, .xml, .strings) generated by i1n pull with their native localization systems.
🛡️ Developer Experience
🔒 Privacy & Security
- Auto-Ignore:
i1n initautomatically adds sensitive config files to your.gitignore. - Secret Management: API keys are only stored locally and never committed to version control.
- Encrypted Transmission: All sync operations happen over secure HTTPS channels.
🔒 Zero-Config Type Safety (TypeScript)
The CLI generates a lightweight declaration file (i1n.d.ts) that automatically augments the i1n package with your project's specific keys.
- Pull: Run
i1n pull. The CLI generateslocales/i1n.d.tsand automatically updates yourtsconfig.jsonso your IDE finds them immediately. - Usage: Import
tfromi1nand get full autocomplete + compile-time checking. No manual path mapping required.
Strict literal checking landed in
1.3.0: passing a hard-coded string that isn't inI1nKeysis now a TypeScript error (no more silent[i1n] Missing translationwarnings at runtime). Variables typed asstringkeep working without casts.
💳 Pricing
CLI, SDK, and MCP server are free on every plan. No credit card required for Starter. Priced per organization, not per processed word. Unlimited viewers on every plan.
Pro lifetime from $199, only for the first 200 users.
📄 License
MIT — © 2026 i1n.ai
来源:README.md,提交 94be41d
工具
0版本历史
1- v1.4.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分