
I1n
io.github.PakvothePublished by GitHub account Pakvothev1.4.7Updated Oct 24, 2026
Agent-complete localization: extract strings, push keys, AI-translate, pull type-safe TS types.
Overview
Lets an AI assistant extract hardcoded strings, push translation keys, AI-translate them, and pull type-safe locale files back into a repo.
- What you can do
- The i1n MCP server exposes the i1n.ai localization loop as tools for coding assistants. Tools include i1n_extract_and_translate, i1n_push, i1n_pull, i1n_translate, i1n_add_language, i1n_check, i1n_search, i1n_status and i1n_setup_bridge. Push uses a three-way diff so dashboard edits are preserved, and pull writes locale files plus generated TypeScript types. Check validates locale files offline for missing keys, broken placeholders and coverage.
- When to use it
- Use it when a project keeps translation files in the repository and you want an assistant to internationalize components, fill in locales, or sync keys with the i1n dashboard. It also fits teams where product or content people edit copy in a dashboard while developers work in git.
- Requirements
- Runs locally over stdio via npx i1n mcp, so Node.js and npm are needed. An i1n account and API key are required for sync and translation; i1n init authenticates and stores configuration locally. Network access is needed for push, pull and translate, while i1n check runs fully offline.
Installation
In SourceWeft
- Open I1n in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 94be41d
Tools
0Version history
1- v1.4.7LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts