Lewati ke konten
Untuk Developer

Lokalisasi yang Dibuat untuk Developer

SDK type-safe, tool CLI, dan integrasi MCP. Rilis terjemahan tanpa meninggalkan IDE Anda.

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

Mulai dalam Hitungan Menit

Setup sederhana, fitur kuat. Tanpa konfigurasi rumit.

# 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>;
}

Performa Edge CDN

Terjemahan disajikan dari jaringan edge global Cloudflare dengan caching agresif dan invalidasi cerdas sehingga pengguna Anda selalu mendapatkan waktu muat tercepat.

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 & Webhook

Akses terprogram ke setiap fungsi platform. Kelola proyek, kunci, dan bahasa dari tooling atau pipeline CI Anda sendiri.

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

Peristiwa Webhook

Terima peristiwa push saat sinkronisasi selesai, terjemahan diterbitkan, atau kunci dimodifikasi.

Operasi Massal

Buat, perbarui, atau hapus beberapa kunci dalam satu permintaan. Setiap kunci dilacak dengan UUID unik di seluruh sinkronisasi.

Pelacakan Status Sinkronisasi

Pantau pekerjaan sinkronisasi melalui status tertunda, sedang berlangsung, selesai, dan gagal. Kunci yang dihapus secara lunak disimpan dengan stempel waktu untuk audit.

Pengalaman Developer

Dibangun untuk para developer yang peduli terhadap keamanan tipe, debugging, dan keterlihatan performa.

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

Infrastruktur

Infrastruktur tingkat produksi dengan keamanan bawaan, redundansi, dan dukungan multi-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 yang Didukung

Mulai Membangun Hari Ini

Paket gratis dengan batas yang besar. Tidak perlu kartu kredit.