דלגו לתוכן
למפתחים

לוקליזציה שנבנתה למפתחים

SDKs בטוחים לטיפוסים, כלי 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

התרגומים מוגשים מרשת ה-edge הגלובלית של Cloudflare עם מטמון אגרסיבי וביטול חכם, כך שהמשתמשים שלך תמיד מקבלים את זמני הטעינה המהירים ביותר האפשריים.

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.

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

אירועי Webhook

קבל התראות דחיפה עם השלמת סנכרון, פרסום תרגומים או שינוי מפתחות.

פעולות אצווה

יצירה, עדכון או מחיקה של מספר מפתחות בבקשה אחת. כל מפתח מזוהה על ידי UUID ייחודי לאורך כל הסנכרונים.

מעקב אחר סטטוס סנכרון

עקבו אחר משימות סנכרון לפי הסטטוסים: בהמתנה, בתהליך, הושלמו ונכשלו. מפתחות שנמחקו באופן זמני נשמרים עם חותמות זמן לצורכי ביקורת.

חוויית מפתח

בנוי עבור מפתחים שמקפידים על בטיחות טיפוסים, ניפוי שגיאות ויכולת תצפית על ביצועים.

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

תשתית

תשתית ברמת ייצור עם אבטחה מובנית, יתירות ותמיכה במספר מרכזי נתונים.

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

Frameworks נתמכים

התחילו לבנות עוד היום

תוכנית חינמית עם מגבלות נדיבות. אין צורך בכרטיס אשראי.