LocalePack
ChromeFirefoxEdgeOperaSafariCWS 列表頁
Vue.jsReact
Next.jsi18nextReact Native
開發者指南成功案例
專為 Safari 擴充功能打造

適用於以下項目的 AI 在地化: Safari 擴充功能

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

占位符安全的翻譯
符合 Safari 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

運作方式

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

01

上傳

拖放你的來源 messages.json 檔案。我們會立即解析並驗證 Safari 擴充功能 格式。

02

選擇語言並查看價格

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

03

下載 ZIP

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

即時定價示範

透明定價估算器

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

1. 上傳檔案

將 messages.json 拖曳到這裡

或點擊以瀏覽

僅支援 Safari WebExtension 格式。上限 500KB。

2. 選擇語言

|

已選擇 55 種語言中的 3 種

3. 您的預估

已選擇的語言3

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

一次性付款 • 無訂閱

為開發者打造

專為 Safari 擴充功能 語系格式打造。不是通用翻譯工具。

支援 Safari 格式

專為 Safari 擴充功能 的 messages.json 結構打造,支援 message、description 與 placeholders。

佔位符保護

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

描述脈絡

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

可直接匯出 ZIP

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

平行處理

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

一次性付款

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

Safari 擴充功能 i18n 的運作方式

Safari Web Extensions 使用與 Chrome、Firefox 相同的 WebExtension 格式——完全一致的 _locales/{locale}/messages.json 結構。Apple 採用標準格式,讓移植既有擴充功能變得容易。Safari Web Extensions 可使用 browser.i18n API,而 LocalePack 的輸出也完全相容。

_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/ 包含使用者語言時,Mac App Store 與 iOS App Store 會顯示你擴充功能的在地化名稱與描述。App Store Connect 會遵循你 _locales/ 資料夾中的語系代碼。

Safari Web Extensions i18n 注意事項 →

Safari shares the format, not the pipeline

Apple adopted the standard WebExtension format, so your locale files port directly — the difference is in how Safari extensions are built and distributed.

Standard WebExtension layout
Safari Web Extensions use the same _locales/{locale}/messages.json structure as Chrome and Firefox. Apple adopted the standard format specifically to make porting existing extensions straightforward.
browser.i18n is available
The browser.i18n API works in Safari Web Extensions, so runtime string lookup behaves the way it does on Firefox.
Distribution runs through App Store Connect
Unlike the other browsers, a Safari extension is distributed through the Mac and iOS App Stores, so store metadata is managed in App Store Connect rather than a web dashboard.
One source, every browser
Because the format is shared, the same messages.json you translate for Chrome covers Safari — you are porting a build, not redoing localization.

Safari's format compatibility is real, but its build and submission pipeline is not shared with the Chromium browsers — budget time for that separately.

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

通用翻譯工具不了解 Safari 擴充功能 格式。

LocalePack
人工翻譯
通用 TMS
設定時間2 分鐘每種語言數小時30 分鐘以上
成本透明度
Safari 格式安全性
佔位符保護
速度(52 種語言)< 5 分鐘週小時
最適合Safari 擴充功能小型專案企業級 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 擴充功能

“終於有一個懂 Safari 擴充功能格式的工具了。翻譯後再也不用修復壞掉的佔位符。”

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.

Safari Web Extensions localization notes

How Safari Web Extensions use the same messages.json/_locales format as Chrome and Firefox, and what to know for Mac App Store submission.

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.

Store listing localization vs in-extension i18n (Chrome + AMO pitfalls)

The difference between localizing your Chrome Web Store listing and localizing in-extension strings — and the _MSG_ pattern that bridges them.

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.

Browse all guides →

準備好將你的 Safari 擴充功能 推向全球了嗎?

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

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

© 2025 LocalePack。保留所有權利。

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