
Locize for AI agents
PluginLocize 官方插件:让 agent 按项目的术语表、风格指南和翻译记忆翻译、审校译文,并检查新文案里的禁用术语;还附带 Locize MCP 和面向开发者的 i18next 应用本地化技能。需要 Locize 账号(有免费档),首次使用在浏览器登录授权,也可改用个人访问令牌。
Locize for AI agents
Conventions and setup for using Locize from AI coding agents (Claude Code, Cursor, VS Code, and any MCP-compatible client) — so an agent translates, reviews, and lints terminology to your project's standards, right in your editor.
There are two halves, and they live in different repos:
| Where | What it covers | |
|---|---|---|
| Setting i18n up | i18next-localization skill | Hardcoded strings → localized app |
| Translating well | this repo | Glossary, tone, translation memory |
To install the setup skill:
npx skills add i18next/i18next-cli
It ships with i18next-cli so it stays version-matched to the commands it drives. The rest of this repo is what governs the translations afterwards.
Install as a plugin
Everything in this repo, plus the i18next-localization skill and the Locize MCP server, ships
as one plugin. The MCP server authenticates via OAuth on first use (or a
Personal Access Token if you
prefer to configure it by hand).
# Claude Code
/plugin marketplace add locize/locize-agents
/plugin install locize@locize
# GitHub Copilot CLI (reads the same plugin layout)
copilot plugin marketplace add locize/locize-agents
# Gemini CLI
gemini extensions install https://github.com/locize/locize-agents
# Cursor: Settings > Plugins > add from GitHub, or the Cursor Marketplace listing
What you get:
| Skill / server | What it does |
|---|---|
i18next-localization | Hardcoded strings to a localized app (vendored from i18next-cli; refresh as MAINTAINING.md says) |
locize-translation-conventions | Translate, review and lint terminology against the project's glossary, style guide and translation memory |
MCP server locize | https://mcp.locize.app: tools for translations, context (glossary, style guide, TM, screenshots), quality review and releases |
What the plugin runs and sends:
-
The MCP server
locizeconnects tohttps://mcp.locize.appafter you sign in with OAuth, and reads and writes your Locize projects with your own permissions. Besides reading, its tools can:- change translations, languages, versions, namespaces and workspaces (
update_translations,report_missing_keys,add_language,change_languages,copy_language,add_version,copy_version,create_workspace,rename_namespace); copying overwrites the target; - delete a namespace, a version or a language with all its translations (
delete_namespace,delete_version,remove_language), and merge a workspace into its parent project (merge_workspace); - publish a version to the Locize CDN, from where your app loads it (
publish_version); - use the project's AI credits by starting an AI review (
start_ai_review).
Workspaces were called branches until Locize v3;
create_branch,merge_branchandlist_branchesstill work under their old names.They cannot pay, send messages or change who has access to a project. The tools that overwrite, delete or publish are marked as destructive (MCP
destructiveHint), and your agent asks before calling a tool you have not allowed. With a Personal Access Token, thereadscope limits the server to the read tools. - change translations, languages, versions, namespaces and workspaces (
-
The
i18next-localizationskill has the agent run i18next-cli withnpx, which downloads it from the npm registry. When you choose to connect a Locize project, the CLI uploads your translation files to the Locize API (api.locize.app) with that project's API key and downloads translations from Locize; without Locize it works on your local files only. -
Nothing else: no telemetry, no other services.
Privacy policy: https://www.locize.com/privacy. Support: https://www.locize.com/support or support@locize.com.
Conventions
The plugin brings these rules as the locize-translation-conventions skill. For a tool
that reads a project instructions file instead, copy CONVENTIONS.md
into the file your tool reads: AGENTS.md (Cursor, Codex and others) or CLAUDE.md
(Claude Code). The Gemini CLI extension loads it by itself.
Connect the Locize MCP server
The conventions assume your agent can reach the Locize MCP server:
# Claude Code
claude mcp add --transport http locize https://mcp.locize.app
For Claude Desktop, Cursor, VS Code, and other clients, add https://mcp.locize.app
as a custom MCP connector and complete the OAuth flow, or use a
Personal Access Token
(read scope is enough for the context tools below). Full setup:
https://www.locize.com/docs/integration/mcp.
The context tools these conventions use
All read-only, read scope:
| Tool | What it gives the agent |
|---|---|
get_glossary | Approved & forbidden terms per language (preferred / allowed / forbidden) |
get_styleguide | Tone, formality, audience, usage rules per language |
search_translation_memory | Exact + fuzzy matches from prior translations |
get_screenshot_context | The screenshot + region where a key appears |
What the conventions tell the agent
- Before translating or reviewing, fetch context: use each glossary term's
preferredvalue (never aforbiddenone), apply the style guide's tone/formality, and reuse high-score translation-memory matches. Pull screenshot context when a string is ambiguous. - For pull-request terminology lint (no translation needed): call
get_glossary(languages: "<source>")and flag any new/changed source string that contains aforbiddenterm, suggesting the language'spreferredterm instead. - Matching against source text is the agent's job — terms are returned verbatim (case as stored).
See the skill for the full rule text.
Localizing an app end-to-end
The conventions above assume an existing Locize project. To take an app from hardcoded strings to fully localized (detect → instrument → extract → connect to Locize → AI-translate → download), install the skill:
npx skills add i18next/i18next-cli --skill i18next-localization
Then just ask: "add i18n to this project". The skill drives
i18next-cli, which does AST-based string
wrapping rather than having the agent edit files by hand, routes per-stack via
references/stacks.md,
and covers ICU MessageFormat and MF2 projects via
references/icu-mf2.md.
Without the skill, the same flow is one command:
npx i18next-cli localize # interactive
npx i18next-cli localize --print-agent-prompt # paste into any agent
The printed prompt is version-matched to the installed CLI. Regenerate it from the command
rather than keeping a copy, so it never drifts from what the CLI actually does. The skill
follows the same rule: it tells the agent to run --print-agent-prompt instead of
embedding a snapshot of the steps.
More: launch post · CLI docs.
相關資源

locize-cli
CLILocize 官方命令行:在本地多语言文件与 Locize 翻译平台之间同步,增删查翻译条目、下载已发布译文、管理版本与分支,可导出 JSON、XLIFF、PO、CSV、Excel 等格式交给译员处理。需要 Locize 账号、项目 ID 与 API Key,有免费套餐。
locize/locize-cli71
i18n Expert
Skill为 React、Next.js、Vue 界面项目配置与审计国际化:把写死的文案替换成词条,检查中英文词条是否齐全一致,核对复数和日期数字格式,附带词条审计脚本。主要面向开发者,需要本地代码项目与 Python。
daymade/claude-code-skills1.6k
i18next CLI
CLIi18next 官方命令行:找出 JS/TS 代码里写死的文案,抽取翻译 key,检查各语言缺了哪些词条并同步语言文件;init --yes 可无交互初始化,仓库还附带官方 Agent Skill,引导 agent 把应用改成多语言。需要使用 i18next 的 Node.js 项目。
i18next/i18next-cli253
Crowdin Skills
PluginCrowdin 官方插件:内置 Crowdin MCP,本地化经理和译员可在 Claude Code、Cowork 或 Codex 里用对话管理项目与译文,另有术语表生成、译员上下文补充、译文起草并上传待审、「在 Crowdin 里怎么做」问答等技能。需 Crowdin 账号并在浏览器授权;起草译文和上传术语表还要装好并登录 Crowdin CLI。
crowdin/skills10
General Translation CLI
CLIGeneral Translation 的命令行 gt:用向导为 React、Next.js 等项目配置多语言,再把界面文案和 JSON、YAML、Markdown 等内容文件交给平台 AI 翻译并写回项目,可接入 CI。需要 Node.js 项目和 General Translation 账号与 API Key(可免费注册,翻译按用量计费)。
generaltranslation/gt1.1k
Weblate Client (wlc)
CLI开源翻译平台 Weblate 的官方命令行客户端:查看项目与组件的翻译进度,上传、下载译文文件,锁定组件、提交或推送仓库变更。可连接 Hosted Weblate 或自建服务,需要服务地址与 API Key(在 Weblate 个人资料页获取),以及 Python 环境。
WeblateOrg/wlc48