LocalePack
ChromeFirefoxEdgeOperaSafariรายการ CWS
Vue.jsReact
Next.jsi18nextReact Native
คู่มือนักพัฒนากรณีความสำเร็จ
สร้างมาเพื่อส่วนขยาย Chrome โดยเฉพาะ

การทำโลคัลไลซ์ด้วย AI สำหรับ ส่วนขยาย Chrome

อัปโหลด messages.json ต้นฉบับ เลือกภาษาเป้าหมาย จ่ายครั้งเดียว แล้วดาวน์โหลด ZIP _locales ที่พร้อมปล่อยใช้งาน

การแปลที่ปลอดภัยต่อเพลซโฮลเดอร์
สอดคล้องกับ messages.json ของ Chrome
ราคาโปร่งใส
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

วิธีการทำงาน

สามขั้นตอนง่ายๆ ในการทำโลคัลไลซ์ ส่วนขยาย Chrome ของคุณ การแปลจะเริ่มหลังชำระเงิน—เราจัดคิวงานและสร้าง ZIP ภายในไม่กี่นาที

01

อัปโหลด

วางไฟล์ messages.json ต้นฉบับของคุณ เราจะพาร์สทันทีและตรวจสอบรูปแบบ ส่วนขยาย Chrome

02

เลือกภาษาและดูราคา

เลือกได้จาก 52 ภาษา ดูราคาแบบโปร่งใสตามขนาดไฟล์ของคุณก่อนชำระเงิน

03

ดาวน์โหลด ZIP

จ่ายครั้งเดียวผ่าน Stripe เราจะสร้างไฟล์ _locales/{lang}/messages.json ทั้งหมดและรวมเป็น ZIP

เดโมราคาแบบเรียลไทม์

เครื่องมือประเมินราคาแบบโปร่งใส

ดูได้ชัดเจนว่าคุณจะจ่ายเท่าไร ก่อนอัปโหลด ใบเสนอราคาสุดท้ายจะคำนวณหลังอัปโหลดตามความยาวสตริงและภาษาที่เลือก

1. อัปโหลดไฟล์

วาง messages.json ที่นี่

หรือคลิกเพื่อเลือกไฟล์

รองรับเฉพาะรูปแบบของส่วนขยาย Chrome เท่านั้น ขนาดสูงสุด 500KB

2. เลือกภาษา

|

เลือกแล้ว 3 จาก 55 ภาษา

3. ใบเสนอราคาของคุณ

ภาษาที่เลือก3

ราคาสุดท้ายจะคำนวณหลังอัปโหลดไฟล์บนหน้าชำระเงิน

ชำระเงินครั้งเดียว • ไม่มีการสมัครสมาชิก

สร้างมาเพื่อนักพัฒนา

ออกแบบมาโดยเฉพาะสำหรับรูปแบบโลแคลของ ส่วนขยาย Chrome ไม่ใช่เครื่องมือแปลทั่วไป

รองรับรูปแบบของ Chrome

สร้างมาโดยเฉพาะสำหรับโครงสร้าง messages.json ของ ส่วนขยาย Chrome พร้อมรองรับ message, description และ placeholders

ปกป้องเพลซโฮลเดอร์

คงรูปแบบไวยากรณ์ $PLACEHOLDER$ ไว้เหมือนเดิมทุกประการ ตัวแปรของคุณจะคงอยู่ครบถ้วนในทุกภาษา

บริบทจากคำอธิบาย

เราอ่านฟิลด์ description ของคุณและใช้เป็นคำใบ้บริบทเพื่อให้ AI แปลได้แม่นยำยิ่งขึ้น

ส่งออกเป็น ZIP พร้อมใช้งาน

ดาวน์โหลด ZIP ที่มีโครงสร้างโฟลเดอร์ _locales/{lang}/messages.json ที่ถูกต้อง แล้วนำไปใส่ในส่วนขยายของคุณได้ทันที

ประมวลผลแบบขนาน

แปลทุกภาษาไปพร้อมกัน งานส่วนใหญ่เสร็จภายในไม่ถึง 5 นาที

ชำระเงินครั้งเดียว

ไม่มีการสมัครสมาชิก ไม่มีค่าธรรมเนียมรายเดือน จ่ายครั้งเดียวต่อหนึ่งงาน ดาวน์โหลดได้ตลอดไป

ส่วนขยาย Chrome ทำงานกับ i18n อย่างไร

ส่วนขยาย Chrome จะประกาศ "default_locale" ใน manifest.json เพื่อเปิดใช้งาน i18n จากนั้นเบราว์เซอร์จะอ่านสตริงภาษาจาก _locales/{locale}/messages.json ระหว่างรันไทม์ แต่ละคีย์มีฟิลด์ "message" มี "description" แบบไม่บังคับสำหรับบริบท และมี "placeholders" แบบไม่บังคับสำหรับค่าที่เปลี่ยนแปลงได้ — ซึ่งทั้งหมดนี้ 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" }
    }
  }
}

Runtime API

chrome.i18n

ตัวอย่างการเรียกใช้งาน

chrome.i18n.getMessage("appName")

จำเป็นต้องมีใน manifest

"default_locale"

Chrome เว็บสโตร์จะแสดงชื่อและคำอธิบายส่วนขยายของคุณโดยอัตโนมัติเป็นภาษาท้องถิ่นของผู้เข้าชม เมื่อ _locales/ มีโฟลเดอร์ภาษาของพวกเขา

เรียนรู้รูปแบบ _locales →

Chrome-specific rules that break builds

Chrome's i18n system fails quietly. These are the four rules that cause most broken releases.

A fixed list of locale folders
Chrome reads only a fixed set of locale codes under _locales/. Any folder outside that list is ignored — no build error, no console warning, the strings simply never load.
Underscores, not hyphens
Chrome expects pt_BR and zh_CN. BCP-47 style pt-BR or zh-CN does not match any supported locale, so the folder is skipped and the UI falls back to default_locale.
default_locale is not optional
If an extension ships a _locales/ directory, manifest.json must declare default_locale. Omit it and the manifest fails validation outright.
getMessage() is synchronous
chrome.i18n.getMessage() reads from disk synchronously, which makes it awkward inside an async Manifest V3 service worker — unlike a popup or content script, where it behaves normally.

A key that does not exist returns an empty string and logs nothing at all. Missing translations show up as blank UI, not as errors.

ทำไมไม่ใช้เครื่องมือทั่วไปไปเลย?

เครื่องมือแปลแบบใช้งานทั่วไปไม่เข้าใจรูปแบบของ ส่วนขยาย Chrome

LocalePack
แปลด้วยตนเอง
TMS ทั่วไป
เวลาในการตั้งค่า2 นาทีหลายชั่วโมงต่อภาษา30+ นาที
ความโปร่งใสของราคา
ความปลอดภัยของรูปแบบ Chrome
ปกป้องเพลซโฮลเดอร์
ความเร็ว (52 ภาษา)< 5 นาทีสัปดาห์ชั่วโมง
เหมาะที่สุดสำหรับส่วนขยาย Chromeโปรเจกต์ขนาดเล็กเว็บแอปสำหรับองค์กร

กรณีความสำเร็จ

โปรเจกต์จริงที่ใช้ 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

“ในที่สุดก็มีเครื่องมือที่เข้าใจฟอร์แมตส่วนขยาย Chrome ไม่ต้องมานั่งแก้ placeholder ที่พังหลังการแปลอีกต่อไป”

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.

How to localize a Chrome extension (complete guide)

Step-by-step guide to adding i18n to a Chrome extension: _locales structure, default_locale, messages.json syntax, chrome.i18n.getMessage(), placeholder preservation, and how to test locale switching.

chrome.i18n: the complete API reference

All four chrome.i18n methods with exact signatures and return types: which are synchronous, which return promises, what getMessage() returns when it fails, and how browser.i18n differs in Firefox and Safari.

chrome.i18n in MV3 service workers

Synchronous getMessage() is an advantage in an MV3 service worker, not a problem — a common claim that gets this backwards. What actually breaks is the DOM, global-variable caching, localStorage and XMLHttpRequest.

Best tools for Chrome extension localization

An honest comparison of tools that translate Chrome extension messages.json files: LocalePack, Crowdin, Lokalise, Phrase, POEditor, Localazy, Weblate, and Localeship — setup overhead, pricing models, and placeholder safety.

LocalePack vs Lokalise for Chrome Extensions

Honest comparison of LocalePack and Lokalise for Chrome extension messages.json translation. Lokalise is a full TMS with team workflows and a monthly subscription; LocalePack is upload → pay once → download.

Browse all guides →

พร้อมส่ง ส่วนขยาย Chrome ของคุณไปทั่วโลกแล้วหรือยัง?

จ่ายครั้งเดียว - ดาวน์โหลด ZIP - ส่งได้ทั่วโลก

ลองใช้ LocalePack
LocalePack
คู่มือความเป็นส่วนตัวข้อกำหนดฝ่ายสนับสนุน

© 2025 LocalePack. สงวนลิขสิทธิ์

โปรเจกต์นี้แปลด้วย LocalePack logoLocalePack