LocalePack
کرومفایرفاکساجاپراسافاریفهرست CWS
Vue.jsReact
Next.jsi18nextReact Native
راهنماهای توسعه‌دهندگاننمونه‌های موفق
Placeholder-safe messages.json translation

بومی‌سازی هوش مصنوعی برای messages.json files

messages.json مبدأ را آپلود کنید، زبان‌های مقصد را انتخاب کنید، یک‌بار پرداخت کنید و فایل ZIP آمادهٔ انتشارِ _locales را دانلود کنید.

ترجمه‌های امن برای placeholder
سازگار با messages.json در WebExtension
قیمت‌گذاری شفاف
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

نحوهٔ کار

سه گام ساده برای بومی‌سازی browser extension. ترجمه‌ها پس از پرداخت اجرا می‌شوند—کارها را در صف قرار می‌دهیم و ظرف چند دقیقه فایل ZIP را تولید می‌کنیم.

01

آپلود

فایل messages.json مبدأ را رها کنید. آن را فوراً پردازش می‌کنیم و قالب browser extension را اعتبارسنجی می‌کنیم.

02

زبان‌ها را انتخاب کنید و قیمت را ببینید

از میان ۵۲ زبان انتخاب کنید. قبل از پرداخت، قیمت‌گذاری شفاف را بر اساس اندازهٔ فایل خود ببینید.

03

دانلود ZIP

یک‌بار از طریق Stripe پرداخت کنید. ما همهٔ فایل‌های _locales/{lang}/messages.json را تولید می‌کنیم و آن‌ها را در یک ZIP بسته‌بندی می‌کنیم.

دموی قیمت‌گذاری زنده

برآوردگر قیمت‌گذاری شفاف

قبل از آپلود دقیقاً ببینید چقدر پرداخت می‌کنید. قیمت نهایی پس از آپلود و بر اساس طول رشته‌ها و زبان‌های انتخاب‌شده محاسبه می‌شود.

۱. آپلود فایل

messages.json را اینجا رها کنید

یا برای مرور کلیک کنید

messages.json input. Max 500KB.

۲. انتخاب زبان‌ها

|

3 از 55 زبان انتخاب شده است

۳. برآورد شما

زبان‌های انتخاب‌شده3

قیمت نهایی پس از آپلود فایل در صفحهٔ تسویه‌حساب محاسبه می‌شود

پرداخت یک‌باره • بدون اشتراک

ساخته‌شده برای توسعه‌دهندگان

به‌طور اختصاصی برای فرمت localeِ browser extension ساخته شده است. ابزار ترجمهٔ عمومی نیست.

سازگار با فرمت WebExtension

به‌طور ویژه برای ساختار messages.jsonِ browser extension با پشتیبانی از message، description و placeholderها ساخته شده است.

محافظت از placeholderها

سینتکس $PLACEHOLDER$ را دقیقاً همان‌طور که هست حفظ می‌کند. متغیرهای شما در همهٔ زبان‌ها دست‌نخورده می‌مانند.

زمینهٔ توضیحات

فیلدهای description شما را می‌خوانیم و از آن‌ها به‌عنوان سرنخ‌های زمینه‌ای برای ترجمه‌های دقیق‌ترِ هوش مصنوعی استفاده می‌کنیم.

خروجی ZIP آماده

یک ZIP با ساختار پوشهٔ درستِ _locales/{lang}/messages.json دانلود کنید. آن را داخل افزونه‌تان قرار دهید.

پردازش موازی

همهٔ زبان‌ها به‌صورت هم‌زمان ترجمه می‌شوند. بیشتر کارها در کمتر از ۵ دقیقه تمام می‌شوند.

پرداخت یک‌باره

بدون اشتراک، بدون هزینهٔ ماهانه. برای هر کار یک‌بار پرداخت کنید، برای همیشه دانلود کنید.

i18n افزونهٔ WebExtension چگونه کار می‌کند

A messages.json entry pairs a key with a "message" string, an optional "description" used as translation context, and an optional "placeholders" map. LocalePack parses all three: it translates only the message text, forwards the description to the model as context, and returns $PLACEHOLDER$ and $1 substitution tokens byte-identical.

ساختار پوشهٔ _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 زمان اجرا

chrome.i18n / browser.i18n

نمونه فراخوانی

getMessage("key")

الزامی در manifest

"default_locale"

The same translated messages.json drops into _locales/{locale}/ for Chrome, Firefox, Edge, Opera and Safari without further edits.

messages.json format explained →

What the translator has to preserve

A messages.json entry is more than a key and a string. Getting these four pieces wrong is what breaks extensions after machine translation.

message
The user-visible string, and the only field that should ever change during translation.
description
Context for whoever — or whatever — translates the string. LocalePack feeds this to the model as translation context, so a good description measurably improves output quality.
placeholders
Named substitutions written as $PLACEHOLDER$ in the message, with their own content definitions. These must survive translation exactly, including the dollar signs and casing.
Positional substitutions
$1 through $9 map to arguments passed to getMessage(). A translator that reorders a sentence must keep these tokens intact, not renumber them.

Most generic translation tools treat $PLACEHOLDER$ and $1 as ordinary words. Once they are translated or reordered, the extension ships with broken interpolation.

چرا از ابزارهای عمومی استفاده نکنیم؟

ابزارهای ترجمهٔ عمومی فرمت browser extension را درک نمی‌کنند.

LocalePack
ترجمهٔ دستی
TMS عمومی
زمان راه‌اندازی۲ دقیقهساعت‌ها برای هر زبان۳۰+ دقیقه
شفافیت هزینه
ایمنی فرمت WebExtension
محافظت از placeholderها
سرعت (۵۲ زبان)< ۵ دقیقههفته‌هاساعت‌ها
مناسب برایAny messages.json fileپروژه‌های کوچکاپلیکیشن‌های وب سازمانی

نمونه‌های موفق

پروژه‌های واقعی که از LocalePack استفاده کردند تا در حداکثر ۵۲ زبان به مخاطبان جهانی برسند.

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 را آپلود کردم و ترجمه‌های بی‌نقص را دقیقاً در همان فرمتی که لازم داشتم تحویل گرفتم.”

سارا ک.

توسعه‌دهنده مستقل، افزونه AdBlock

“Our $PLACEHOLDER$ tokens came back untouched in all 52 locales. That is the whole reason we stopped scripting it ourselves.”

مارکوس ت.

نگه‌دارندهٔ افزونه

“قیمت‌گذاری شفاف نقطهٔ قوتش بود. دقیقاً می‌دانستم قبل از آپلود هر چیزی چقدر پرداخت می‌کنم.”

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.

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.

Validate messages.json before shipping

How to catch every class of messages.json error before your users do: JSON syntax, missing required fields, missing keys across locales, malformed placeholder syntax, and manifest key mismatches.

__MSG_key__ in manifest.json explained

How the __MSG_key__ substitution syntax works in Chrome and Firefox extension manifests: which fields support it, how Chrome resolves tokens at load time, and the pitfalls that cause silent failures or upload rejections.

chrome.i18n.getMessage() returns empty

getMessage() returns an empty string when a message is missing, and logs nothing at all. Every cause of the silent empty string, how to tell it apart from undefined, and how to confirm each one.

Browse all guides →

آماده‌اید browser extension خود را در سراسر جهان منتشر کنید؟

یک‌بار پرداخت - دانلود ZIP - انتشار جهانی

LocalePack را امتحان کنید
LocalePack
راهنماهاحریم خصوصیشرایطپشتیبانی

© 2025 LocalePack. همهٔ حقوق محفوظ است.

این پروژه با استفاده از LocalePack logoLocalePack