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 分

    請在儲存庫或註冊中心條目中宣告授權條款。