ข้ามไปยังเนื้อหา
สำหรับนักพัฒนา

โซลูชันโลคัลไลเซชันที่สร้างมาเพื่อนักพัฒนา

SDK แบบ type-safe, เครื่องมือ CLI และการผสานรวม MCP ส่งมอบคำแปลได้โดยไม่ต้องออกจาก IDE

Type-Safe SDKs

Full TypeScript support with autocomplete for translation keys

Git-First Workflow

Automatic key discovery from your codebase via AST parsing

MCP Integration

Manage translations directly from Claude or Cursor

CLI Tools

Scan codebase, sync translations, and validate keys from terminal

Edge CDN

Sub-50ms translation delivery from Cloudflare's global network

Hot Reload

See translation changes instantly during development

เริ่มต้นได้ในไม่กี่นาที

ตั้งค่าง่าย ฟีเจอร์ทรงพลัง ไม่ต้องมีคอนฟิกที่ซับซ้อน

# Install the SDK
npm install @better-i18n/next

# Configure your project
npx better-i18n init

# Scan for translation keys
npx better-i18n scan

# Your code stays clean
import { useTranslations } from '@better-i18n/use-intl';

function Component() {
  const t = useT('common');
  return <h1>{t('welcome')}</h1>;
}

ประสิทธิภาพ Edge CDN

การแปลถูกส่งจาก global edge network ของ Cloudflare ด้วยการแคชที่รุนแรงและการ invalidation อย่างชาญฉลาด เพื่อให้ผู้ใช้ของคุณได้รับเวลาโหลดที่เร็วที่สุดเท่าที่เป็นไปได้เสมอ

Manifest Cache5-minute TTL with smart invalidation on publish
Translation Cache1-hour TTL for optimal repeat-visit performance
Global Propagation5-10 second cache propagation after publish
Cache PurgingPublish triggers global invalidation instantly
Preload Support<link rel=preload> for faster initial loading
Edge LocationsNorth America, Europe, and Asia Pacific
Immutable Assets1-year cache for static assets like flags

REST API และ Webhooks

การเข้าถึงทุกฟังก์ชันแพลตฟอร์มโดยใช้โปรแกรม จัดการโปรเจกต์ คีย์ และภาษาจากเครื่องมือของคุณเองหรือ CI pipeline

// REST API methods
listProjects()
getProject(id)
addLanguage(projectId, locale)
listKeys(projectId)
createKeys(projectId, keys[])
updateKeys(projectId, keys[])
deleteKeys(projectId, keyIds[])

เหตุการณ์ Webhook

รับเหตุการณ์แบบ push เมื่อการซิงค์เสร็จสิ้น มีการเผยแพร่การแปล หรือมีการแก้ไขคีย์

การดำเนินการแบบกลุ่ม

สร้าง อัปเดต หรือลบคีย์หลายรายการในคำขอเดียว คีย์แต่ละรายการถูกติดตามด้วย UUID เฉพาะตลอดการซิงค์

การติดตามสถานะซิงค์

ติดตามงานซิงค์ผ่านสถานะ pending, in-progress, completed และ failed คีย์ที่ถูกลบแบบ soft-delete จะถูกเก็บรักษาพร้อม timestamp สำหรับการตรวจสอบ

ประสบการณ์นักพัฒนา

สร้างมาสำหรับนักพัฒนาที่ใส่ใจเรื่องความปลอดภัยของประเภทข้อมูล การดีบัก และการสังเกตประสิทธิภาพ

Namespace Scoping

Automatic namespace binding via lexical scope analysis

Rich Type System

Full TypeScript types exported from @better-i18n/core

i18n.config.ts

Single workspace configuration file for all settings

Debug Logging

Verbose output for troubleshooting integration issues

Perf Monitoring

Execution time and cache hit rate reporting

Custom Fetch

Bring your own HTTP client for translation loading

Error Handlers

Custom callbacks for missing translation keys

Locale Callbacks

Event hooks for locale switching and changes

โครงสร้างพื้นฐาน

โครงสร้างพื้นฐานระดับ production พร้อมความปลอดภัยในตัว ความซ้ำซ้อน และการรองรับหลาย datacenter

Cloudflare Workers

Edge computing with built-in DDoS protection and global distribution

Cloudflare R2 Storage

Object storage for translation files with zero egress fees

PlanetScale Database

Serverless MySQL with automatic backups and branching

Multi-Datacenter

Redundant deployment across regions for high availability

Framework ที่รองรับ

เริ่มสร้างได้ตั้งแต่วันนี้

แพ็กเกจฟรีพร้อมลิมิตที่ให้มาอย่างจุใจ ไม่ต้องใช้บัตรเครดิต