LocalePack
ChromeFirefoxEdgeOperaSafariCWS 列表頁
Vue.jsReact
Next.jsi18nextReact Native
開發者指南成功案例
專為 Firefox 附加元件打造

適用於以下項目的 AI 在地化: Firefox 附加元件

上傳你的來源 messages.json,選擇目標語言,一次付費,下載可直接上架的 _locales ZIP。

占位符安全的翻譯
符合 Firefox messages.json 規範
透明定價
messages.json
來源語言(範例)
{
  "appName": {
    "message": "My Extension",
    "description": "Name"
  },
  "welcomeMsg": {
    "message": "Hello, $USER$!",
    "placeholders": {
      "user": {
        "content": "$1"
      }
    }
  }
}
德文(輸出)
{
  "appName": {
    "message": "Meine Erweiterung",
    "description": "Name"
  },
  "welcomeMsg": {
    "message": "Hallo, $USER$!",
    "placeholders": {
      "user": {
        "content": "$1"
      }
    }
  }
}
52 locales

運作方式

只要三個簡單步驟即可在地化你的 Firefox 附加元件。翻譯會在付款後開始執行——我們會將工作排入佇列,並在幾分鐘內產生 ZIP。

01

上傳

拖放你的來源 messages.json 檔案。我們會立即解析並驗證 Firefox 附加元件 格式。

02

選擇語言並查看價格

從 52 種語言中選擇。付款前即可依檔案大小查看透明定價。

03

下載 ZIP

透過 Stripe 一次付費。我們會產生所有 _locales/{lang}/messages.json 檔案,並將它們打包成 ZIP。

即時定價示範

透明定價估算器

上傳前就能清楚知道你將支付的金額。最終報價會在上傳後,依字串長度與所選語言計算。

1. 上傳檔案

將 messages.json 拖曳到這裡

或點擊以瀏覽

僅支援 Firefox WebExtension 格式。最大 500KB。

2. 選擇語言

|

已選擇 55 種語言中的 3 種

3. 您的預估

已選擇的語言3

最終價格將於結帳頁面上傳檔案後計算

一次性付款 • 無訂閱

為開發者打造

專為 Firefox 附加元件 語系格式打造。不是通用翻譯工具。

支援 Firefox 格式

專為 Firefox 附加元件 的 messages.json 結構打造,支援 message、description 與 placeholders。

佔位符保護

完整保留 $PLACEHOLDER$ 語法,不做任何變更。您的變數在所有語言中都能保持完整。

描述脈絡

我們會讀取您的 description 欄位,並將其作為脈絡提示,以提供更精準的 AI 翻譯。

可直接匯出 ZIP

下載包含正確 _locales/{lang}/messages.json 資料夾結構的 ZIP。直接放進您的擴充功能即可。

平行處理

所有語言同時翻譯。多數工作可在 5 分鐘內完成。

一次性付款

無訂閱、無月費。每次工作付一次,永久下載。

Firefox 擴充功能 i18n 的運作方式

Firefox WebExtensions 使用 _locales/ 底下相同的 messages.json 格式。只要存在 _locales/ 目錄,manifest.json 中就必須包含 "default_locale" 欄位——省略會導致附加元件被拒絕。browser.i18n API 會在執行階段讀取語系字串,並完整支援 $PLACEHOLDER$ 代入。

_locales/ 資料夾結構
_locales/
├── en/
│   └── messages.json   ← default_locale
├── de/
│   └── messages.json
├── fr/
│   └── messages.json
└── ja/
    └── messages.json
messages.json
{
  "appName": {
    "message": "My Extension",
    "description": "Extension name"
  },
  "greeting": {
    "message": "Hello, $USER$!",
    "placeholders": {
      "user": { "content": "$1" }
    }
  }
}

執行階段 API

browser.i18n

呼叫範例

browser.i18n.getMessage("appName")

在 manifest 中必填

"default_locale"

當存在 _locales/ 時,AMO(addons.mozilla.org)會以審查者的語系顯示你的附加元件名稱與描述。所有語系保持一致的翻譯有助於提高商店審核通過率。

深入解析 Firefox i18n →

Firefox and AMO work differently

Firefox reads the same file format as Chrome, but Mozilla's store handles listing text in a completely separate place.

Same format, different namespace
Firefox reads the identical _locales/{locale}/messages.json layout. The runtime namespace is browser.i18n rather than chrome.i18n, with full $PLACEHOLDER$ support.
default_locale is required
Whenever the _locales/ directory exists, manifest.json must declare default_locale. Omitting it causes the add-on to be rejected.
Your AMO listing is a separate job
The name, summary, and description shown on addons.mozilla.org are not read from _locales/. They are localized separately in the AMO developer hub — Mozilla lets you translate nearly all listing text, including the add-on name.
Mozilla has no translator pipeline
Mozilla has publicly acknowledged it has no way to connect extension developers with the translation community at scale, which is why most AMO listings stay English-only.

Shipping a fully localized _locales/ folder does not localize your AMO page. Those are two separate pieces of work.

為什麼不直接用通用工具?

通用翻譯工具不了解 Firefox 附加元件 格式。

LocalePack
人工翻譯
通用 TMS
設定時間2 分鐘每種語言數小時30 分鐘以上
成本透明度
Firefox 格式安全性
佔位符保護
速度(52 種語言)< 5 分鐘週小時
最適合Firefox 附加元件小型專案企業級 Web 應用程式

成功案例

使用 LocalePack 的真實專案,最多可支援 52 種語言,觸及全球受眾。

AstrologerAI AI astrology app localized into 52 languages

AstrologerAI: an AI astrology app localized into 52 languages

How the AstrologerAI app translated its entire experience into 52 languages with LocalePack — 6.3M tokens for $58.73 — to reach a worldwide audience in their own language.

DevToys.pro developer tools web app localized into 52 languages

DevToys.pro: 400% international traffic growth across 52 languages

How the DevToys.pro web app translated its entire UI into 52 languages with LocalePack — 5.8M tokens for $58.44 — and quadrupled its international organic traffic.

DevToys New Tab Chrome extension localized into 52 languages

DevToys New Tab: a Chrome extension localized UI + store listing in 52 languages

How the DevToys New Tab Chrome extension localized both its in-extension UI and its Chrome Web Store listing into 52 languages to reach a global audience.

The LocalePack site localized into 52 languages with LocalePack

LocalePack localized itself into 52 languages — with LocalePack

We used our own tool to translate the entire LocalePack site into 52 languages — 2.9M tokens for $27.37 — so developers worldwide find us in their own language.

查看所有成功案例

深受擴充功能開發者信賴

“幫我省下好幾個小時的繁瑣工作。上傳我的 messages.json,就能拿到完全符合我所需格式的完美翻譯。”

Sarah K.

獨立開發者,AdBlock 擴充功能

“終於有一個懂 Firefox 附加元件格式的工具了。翻譯後再也不用修復壞掉的佔位符。”

Marcus T.

擴充功能維護者

“透明定價是我決定購買的關鍵。在上傳任何內容之前,我就清楚知道自己會付多少。”

Dev J.

開源貢獻者

52

支援的語系

100%

Placeholder 安全輸出

ZIP

可直接上線

常見問題

關於 LocalePack,你需要知道的一切。

Related developer guides

Deep dives on the formats, APIs and errors behind this page — written for developers, not translators.

Firefox WebExtensions i18n: messages.json reference

Using browser.i18n in Firefox add-ons: the messages.json format, AMO localization requirements, and how to avoid common pitfalls on addons.mozilla.org.

Localizing your Firefox AMO listing

How to localize an add-on listing on addons.mozilla.org: which fields can be translated, the 250-character summary ceiling and what it costs you in German and Russian, and the per-locale Developer Hub workflow.

messages.json format explained (with placeholders)

A complete reference for the WebExtension messages.json format: the message, description, and placeholders fields, $PLACEHOLDER$ syntax, $1 positional substitutions, and common mistakes.

Chrome extension locale codes: all 55

Every locale code Chrome accepts as a _locales folder name, with language and native names, the underscore-vs-hyphen trap that makes pt-BR silently ignored, and how Chrome picks a locale at runtime.

Browser extension i18n without a TMS subscription

Why Crowdin, Lokalise, and Phrase are overkill for most browser extension projects — and three real alternatives for indie developers who need to translate messages.json without a monthly subscription.

Browse all guides →

準備好將你的 Firefox 附加元件 推向全球了嗎?

一次付費 - 下載 ZIP - 全球上架

試用 LocalePack
LocalePack
指南隱私權條款支援

© 2025 LocalePack。保留所有權利。

本專案使用以下工具翻譯: LocalePack logoLocalePack