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.

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

讓 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 完全離線。
安裝前請注意
推送、拉取、翻譯與新增語言會寫入本機語系檔案,並把翻譯內容傳送到 i1n 服務。--force 或 --strategy ours 會覆寫伺服器上的值,文件稱其為破壞性操作。翻譯會消耗方案額度,且存在付費方案。API 金鑰儲存在本機,不應提交到版本控制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 I1n,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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]

[demo]

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

  1. Extract: the agent finds hardcoded strings and calls i1n_extract_and_translate.
  2. Push: keys go to i1n with a three-way diff, so dashboard edits are preserved.
  3. Translate: AI translation into 182 languages, with placeholder protection, brand voice and terminology rules.
  4. Pull: locale files plus generated TypeScript types land back in the repo.
  5. Check: npx i1n check --min-coverage 95 in 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

bash
# To use the CLI (global)npm install -g i1n
# To use the SDK + types (in your app)npm install i1n
# Local CLI usage (optional)npm install -D i1n

Supports npm, pnpm, yarn, and bun.


🏁 Quick Start

bash
# 1. Initialize (auth + auto-detect setup)i1n init
# 2. Push your translation keysi1n push
# 3. Pull translations + auto-generated TypeScript typesi1n pull

✨ 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.ts for 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 95 fails the build when translation coverage drops below your threshold.
  • --json for tooling. Exit codes: 0 clean, 1 errors found, 2 config problem.
  • 100% offline — no API calls, no secrets needed in CI.
yaml
# .github/workflows/ci.yml- name: Validate translations  run: npx i1n check --min-coverage 95

🧠 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.

bash
# Add to Claude Codeclaude mcp add i1n -- npx i1n mcp
# Or add to .mcp.json / cursor config
json
{  "mcpServers": {    "i1n": {      "command": "npx",      "args": ["i1n", "mcp"]    }  }}

9 tools available:

ToolDescription
i1n_statusGet project status, plan, limits, and active languages
i1n_checkValidate locale files offline: missing keys, broken placeholders, coverage
i1n_pushPush local translation files with three-way diff (preserves server-side edits, aborts on conflict so the agent can resolve)
i1n_pullPull translations and generate type-safe TypeScript definitions
i1n_translateTranslate keys to specified languages using AI
i1n_add_languageAdd new languages with optional auto-translation
i1n_extract_and_translateExtract strings from code, push as keys, translate to all languages
i1n_searchSearch existing translation keys by name or value
i1n_setup_bridgeDetect your i18n library (i18next, vue-i18n, next-intl, etc.) and wire up i1n bridge mode end-to-end

Example: tell your AI agent "internationalize this component":

  1. The agent reads your file and identifies hardcoded strings
  2. It calls i1n_extract_and_translate with the extracted strings
  3. i1n pushes the keys, translates to all active languages, generates types
  4. 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:

  1. Reads your local locale files (L).
  2. Asks the server which keys exist and when each was last modified (cheap metadata-only call, ~50× smaller than a full pull).
  3. If anything moved on the server since your last sync, fetches the full server state (S).
  4. Computes a three-way diff per (namespace, key, lang) against the last baseline you synced (P, stored in locales/.i1n-push-state.json).

For each (key, lang) the diff places it in one of these buckets:

LocalServerBaselineAction
== server——unchanged, skip
== baselinechanged—server-only — auto-pull into your locale files
changed== baseline—local edit — push it
changedchangedboth movedconflict — resolve interactively
missingpresentpresent in baselinewarn, don't propagate (no delete verb)

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:

Conflict 1/3: common.greeting [en_us]
  › Keep local: "Hello there"    Accept server: "Hi"    Abort push
  • 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:

bash
i1n push --strategy theirs   # accept all server values, push nothing for conflictsi1n push --strategy ours     # local wins (alias: --force)i1n push --strategy abort    # exit on any conflict

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

FormatFrameworksFile Sample
Nested JSONi18next, next-intl, vue-i18nen/common.json
Flat JSONReact Native, Genericlocales/en.json
ARBFlutter / Dartapp_en.arb
YAMLRuby on Railsen.yml
Android XMLNative Androidstrings.xml
Apple StringsiOS / macOSLocalizable.strings
TypeScriptType-safe JSONlocales/en.ts

🧩 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.

typescript
import { init, t, setLocale } from "i1n";
// Load your translation resourcesinit({  locale: "en_us",  resources: {    en_us: {      auth: { login: "Login", title: "Welcome back, {user}" },      items_one: "One item",      items_other: "{count} items",    },    es_es: {      auth: { login: "Entrar", title: "Bienvenido de nuevo, {user}" },      items_one: "Un elemento",      items_other: "{count} elementos",    },  },});
// Autocomplete and type-safety work out of the box after 'i1n pull't("auth.login"); // "Login"
// Support for default values (useful during development)t("new.key", { defaultValue: "Coming soon..." }); // "Coming soon..."
// Variables & Pluralst("auth.title", { user: "Fran" }); // "Welcome back, Fran"t("items", { count: 5 }); // "5 items"
// Switch language at runtimesetLocale("es_es");t("auth.login"); // "Entrar"

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.

typescript
import i18next from "i18next";import { registerI1n, t } from "i1n";
// Set up i18next as usualawait i18next.init({  lng: "en",  resources: {    /* ... */  },});
// Connect to i1n — one lineregisterI1n((key, params) => i18next.t(key, params));
// Now t() uses i18next under the hood, but with strict type checkingt("common.greeting", { name: "World" }); // Powered by i18next, typed by i1n

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:

typescript
// In your translation files:// "items_zero": "No items"// "items_one": "One item"// "items_other": "{count} items"
t("items", { count: 0 }); // "No items"t("items", { count: 1 }); // "One item"t("items", { count: 5 }); // "5 items"

Interpolation

Three syntaxes supported universally: {var}, {{var}}, %{var}

JavaScript (without TypeScript)

The SDK works in plain JS — you just don't get autocompletion:

javascript
import { init, t } from "i1n";init({ locale: "en_us", resources: { en_us: { greeting: "Hello {name}" } } });t("greeting", { name: "World" }); // "Hello World"

⚛️ React / Preact Integration

For a "plug and play" experience, use this minimalist provider pattern.

tsx
import { createContext, useContext, useState, useEffect } from "react";import { init, t, getLocale, setLocale as sdkSetLocale } from "i1n";
// 1. Initialize with wordings// (In a real app, you'd probably import these from your locales folder)init({  locale: "en_us",  resources: {    /* ... */  },});
const STORAGE_KEY = "i1n-locale";const I1nContext = createContext({  locale: "en_us",  setLocale: (l: string) => {},});
// 2. Persistent Providerexport function I1nProvider({ children, defaultLocale = "en_us" }) {  const [locale, setLocaleState] = useState(() => {    return localStorage.getItem(STORAGE_KEY) || defaultLocale;  });
  // Keep SDK in sync  useEffect(() => {    sdkSetLocale(locale);  }, [locale]);
  const setLocale = (newLocale: string) => {    localStorage.setItem(STORAGE_KEY, newLocale);    setLocaleState(newLocale);  };
  return (    <I1nContext.Provider value={{ locale, setLocale }}>      {children}    </I1nContext.Provider>  );}
// 3. Simple Hookexport const useI1n = () => ({ t, ...useContext(I1nContext) });

Usage:

tsx
const { t, setLocale } = useI1n();
return (  <div>    <h1>{t("auth.title", { user: "Fran" })}</h1>    <button onClick={() => setLocale("es_es")}>Español</button>  </div>);

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 init automatically 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.

  1. Pull: Run i1n pull. The CLI generates locales/i1n.d.ts and automatically updates your tsconfig.json so your IDE finds them immediately.
  2. Usage: Import t from i1n and get full autocomplete + compile-time checking. No manual path mapping required.
typescript
import { t } from "i1n";
// Full autocomplete & compile-time checkingt("auth.login.title");
// ERROR: Argument of type '"auth.login.titlse"' is not assignable...t("auth.login.titlse");
// Dynamic strings still pass through — useful for `t(item.name)`,// runtime-built keys, etc.declare const dynamicKey: string;t(dynamicKey);

Strict literal checking landed in 1.3.0: passing a hard-coded string that isn't in I1nKeys is now a TypeScript error (no more silent [i1n] Missing translation warnings at runtime). Variables typed as string keep working without casts.


💳 Pricing

PlanPriceKeys (shared pool)LanguagesAI translations/mo
Starter$020022,000
Pro$29/mo2,000310,000
Business$99/mo8,000630,000
EnterpriseFrom $399/moCustom (25k+)UnlimitedCustom

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.4.7最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分