Babelize

io.github.babelize由 GitHub 账号 babelize 发布v1.3.7更新于 Oct 30, 2026

Make apps global-ready from your coding agent: analyze, translate, check and review i18n locally.

已验证STDIO仅桌面开发者工具

概览

AI 生成的概览

Babelize 让编程助手在本地分析、翻译、检查与审阅应用的国际化(i18n)内容,可使用 Babelize 托管翻译或自带密钥。

可以做什么
  • 分析应用的本地化配置,找出需要翻译的文案。
  • 翻译文案与语言文件,可走 Babelize 托管翻译或使用自带的模型服务密钥。
  • 检查并审阅翻译,发现上线前的 i18n 问题。
  • 配合 Babelize 账号使用云端项目相关工具。
  • 在指定工作区文件夹内读写本地文件。
适用场景
适合正在为应用或网站做多语言、希望编程助手在同一会话中检查语言文件、生成并审阅翻译的场景。对已使用 Babelize 或愿意自备模型服务密钥的开发者最合适。
运行要求
以本地 npm 包形式通过 stdio 在桌面端运行。需要 BABELIZE_API_KEY 以使用托管翻译和云端项目工具,或提供任一自带密钥(ANTHROPIC_API_KEY、OPENAI_API_KEY、GEMINI_API_KEY、GROQ_API_KEY、OPENROUTER_API_KEY)。可选设置 BABELIZE_WORKSPACE 限定本地工具可操作的文件夹,以及 BABELIZE_API_URL 覆盖 API 地址。
安装前请注意
涉及多个密钥:BABELIZE_API_KEY 与各模型服务密钥均从环境变量读取,请勿写入共享配置。翻译可能把源文案发送到 Babelize 托管服务或所选模型服务商。本地工具可读写工作区文件夹中的文件,建议将 BABELIZE_WORKSPACE 设得尽量窄。将 BABELIZE_API_URL 指向自定义地址会把密钥与内容发送到该地址。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Babelize,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

工具

35

babelize_analyze

Analyze localization readiness

Start here to make a React, Next.js or Django app global-ready (Vue, React Native/Expo and static HTML are beta). Scans the local project with the Babelize engine in dry-run mode on a temp copy: nothing is written, no network, no API key. Reports: framework and support level; whether the i18n library (next-intl / react-i18next / vue-i18n) is installed and wired up; hardcoded user-facing strings (count + file:line); JSX sentences kept whole as one ICU message vs split into pieces; strings that cannot be wired automatically and why; hardcoded dates/currencies/plurals; existing locale files and their coverage per locale; source keys that look unused (advisory); and next steps. Loop: babelize_analyze → babelize_translate → babelize_check (or babelize_review on a diff) → fix → repeat. Returns a short summary plus compact JSON; lists are capped by `limit`. Paths are relative to the project root.

输入参数frompathlimitlocales

babelize_translate

Translate the project (local engine)

Make the app global-ready: extract hardcoded strings, wire them to the i18n library (adding config/provider and package.json deps when missing), and translate every key into the target locales, writing locale files and code into the working tree. Same engine and result as `npx babelize translate`. Run babelize_analyze first; afterwards review `git diff` and run babelize_check. Requires a git repo with a clean working tree (commit or stash first; force: true overrides; dryRun: true previews without writing and works on a dirty tree). Incremental: a lockfile (.babelize/local/babelize-lock.json) means reruns only translate new or changed strings, and failed strings are retried on the next run. Earlier locales are kept and updated unless replace: true. Translation keys come from the MCP server environment, never from arguments: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, GROQ_API_KEY or OPENROUTER_API_KEY (your own LLM key), or a Babelize API key for Babelize-hosted translation (free tier): --api-key on this server, BABELIZE_API_KEY, or apiKey in .babelize/config.json. Returns files changed, per-locale translated/failed counts, failures with reasons, QA warnings, strings not wired into code, a diff summary (and a diff preview on dryRun). Sends progress notifications.

输入参数to必填frompathforcelimitmodeldryRunreplaceproviderformalitybrandVoice

babelize_check

Check locale files (QA)

QA of the existing locale files against the source locale, without translating: no network, no API key, read-only. Use after babelize_translate or after editing locale files, and before committing. Finds: missing and stale keys; empty values; values identical to the source (untranslated); placeholders/tags lost or invented ({name}, {{count}}, <0>, %s); invalid ICU messages and wrong plural categories for the locale (ICU and i18next _one/_other keys); glossary violations (glossary in .babelize/config.json). Looks for <locale>.json (or <locale>/<namespace>.json) under locales/, messages/, lang/, i18n/ or translations/ folders. Returns per-locale counts and a capped list of issues (errors first) with file, locale, key and the problem in plain words.

输入参数frompathlimitlocalesminSeverity

babelize_review

Review locale changes in a diff

Review the locale changes in the current git diff (working tree vs HEAD, including untracked files) or vs a base ref, e.g. before committing or in a PR. QAs only the changed entries with the same checks as babelize_check (missing keys, placeholders, ICU, plural forms, untranslated, glossary from .babelize/config.json), and flags source strings whose translations were not updated (stale) and new source keys a locale is missing. Read-only; no network, no API key.

输入参数basefrompathlimitlocalesminSeverity

babelize_scan

Scan Directory

Low-level: list hardcoded strings in a local directory (regex/AST scan, no framework detection). No API key required. For a whole-project localization report use babelize_analyze.

输入参数directory必填extensions

babelize_scan_strings

Scan Strings

Low-level: extract hardcoded translatable strings from a code snippet. No API key required.

输入参数code必填language

babelize_project_list

List Projects

Cloud project management: List all translation projects. Requires BABELIZE_API_KEY.

输入参数pagelimit

babelize_project_get

Get Project

Cloud project management: Get details of a specific translation project. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_project_create

Create Project

Cloud project management: Create a new translation project from a GitHub repository (repo_url is required). ZIP projects cannot be created here: their archive must be uploaded first, via the dashboard (Upload ZIP) or `babelize init --source zip`. Requires BABELIZE_API_KEY.

输入参数name必填branchrepo_url必填brand_voicesource_languagetarget_languages

babelize_babel_list

List Translation Runs

Cloud project management: List translation runs (babels). Requires BABELIZE_API_KEY.

输入参数pagelimitproject_id

babelize_babel_get

Get Translation Run

Cloud project management: Get detailed info and logs for a translation run. Requires BABELIZE_API_KEY.

输入参数babel_id必填

babelize_language_list

List Languages

Cloud project management: List all supported languages. Requires BABELIZE_API_KEY.

无需输入参数。

babelize_language_codes

Language Codes

Cloud project management: Look up language code mappings (ISO ↔ FLORES-200). Requires BABELIZE_API_KEY.

输入参数actioniso_codeflores_code

babelize_engine_analyze

Analyze Code

Cloud project management: Analyze source code for framework detection and i18n readiness. Requires BABELIZE_API_KEY.

输入参数code必填filename

babelize_tm_get

Get Translation Memory

Cloud project management: List translation memory entries for a project. Requires BABELIZE_API_KEY.

输入参数searchproject_id必填target_lang

babelize_tm_set

Set Translation Memory

Cloud project management: Add a translation memory entry. Requires BABELIZE_API_KEY.

输入参数project_id必填source_langsource_text必填target_lang必填translated_text必填

babelize_tm_export

Export Translation Memory

Cloud project management: Export translation memory as TMX. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_glossary_delete

Delete Glossary Entry

Cloud project management: Delete a glossary entry. Requires BABELIZE_API_KEY.

输入参数entry_id必填project_id必填

babelize_glossary_import

Import Glossary

Cloud project management: Bulk import glossary entries from a CSV string (term,type,<locale>,…). Existing terms (matched ignoring case) are updated unless skip_existing is set. Reports added/updated/skipped/rejected rows. Requires BABELIZE_API_KEY.

输入参数csv必填project_id必填skip_existing

babelize_glossary_export

Export Glossary

Cloud project management: Export glossary entries as CSV. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_project_language_add

Add Language

Cloud project management: Add a language to a project. Requires BABELIZE_API_KEY.

输入参数project_id必填language_id必填

babelize_project_language_remove

Remove Language

Cloud project management: Remove a language from a project. Requires BABELIZE_API_KEY.

输入参数project_id必填language_id必填

babelize_member_list

List Members

Cloud project management: List members of a project. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_invitation_send

Send Invitation

Cloud project management: Send a team invitation to a project. Requires BABELIZE_API_KEY.

输入参数role必填email必填project_id必填

babelize_project_sync

Sync Project

Cloud project management: Trigger a repository sync for a project. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_pr_raise

Raise Pull Request

Cloud project management: Create a GitHub Pull Request with the latest run's translations. If the project's PR is still open (same target languages), the run is added to it instead. Requires BABELIZE_API_KEY.

输入参数titleforce_newproject_id必填base_branch

babelize_pr_update

Update Pull Request

Cloud project management: Push the latest run's translations to the project's open GitHub Pull Request. Requires BABELIZE_API_KEY.

输入参数project_id必填

babelize_project_download

Download Project

Cloud project management: Download translated project files as ZIP. Requires BABELIZE_API_KEY.

输入参数project_id必填output_path

babelize_me

Get User Profile

Cloud project management: Get current user profile and credits. Requires BABELIZE_API_KEY.

无需输入参数。

babelize_provider_tokens_list

List Provider Tokens

Cloud project management: List connected BYOK translation provider tokens. Requires BABELIZE_API_KEY.

无需输入参数。

babelize_run

Run Translation

Cloud project management: Trigger a Babelize translation run for target languages. Requires BABELIZE_API_KEY.

输入参数frameworkproject_id必填source_localetarget_locales必填

babelize_run_and_wait

Run Translation and Wait

Cloud project management: Start a translation run and poll until it completes. Requires BABELIZE_API_KEY.

输入参数frameworkmax_pollsproject_id必填poll_intervalsource_localetarget_locales必填

babelize_status

Check Status

Cloud project management: Check status of a translation run. Requires BABELIZE_API_KEY.

输入参数babel_id必填

babelize_glossary_get

Get Glossary

Cloud project management: List glossary entries for a project, with each entry's id (for babelize_glossary_delete) and the total count. Paged: 100 entries per page by default. Requires BABELIZE_API_KEY.

输入参数pagelimitsearchproject_id必填

babelize_glossary_set

Set Glossary Entry

Cloud project management: Add or update a glossary entry. never_translate keeps the term as written in every language (no target needed). always_translate_as sets the required translation of the term for one locale; calling it again for another locale adds that locale to the same entry. An existing entry for the term (matched ignoring case) is updated, not duplicated. Requires BABELIZE_API_KEY.

输入参数typelocalesource必填targetproject_id必填

版本历史

3
  1. v1.3.7最新Oct 30, 2026
  2. v1.3.0Oct 16, 2026
  3. v1.2.0Oct 12, 2026

评分

已满足适用检查项的 65%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。