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%

占位符安全输出

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