開発者のためのローカリゼーション
型安全な SDK、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>;
}エッジCDNパフォーマンス
翻訳はCloudflareのグローバルエッジネットワークから積極的なキャッシュとスマートな無効化によって配信されるため、ユーザーは常に最速のロード時間を体験できます。
REST API & Webhook
すべてのプラットフォーム機能へのプログラムによるアクセスが可能です。独自のツールやCIパイプラインからプロジェクト、キー、言語を管理できます。
// REST API methods listProjects() getProject(id) addLanguage(projectId, locale) listKeys(projectId) createKeys(projectId, keys[]) updateKeys(projectId, keys[]) deleteKeys(projectId, keyIds[])
Webhookイベント
同期の完了、翻訳の公開、またはキーの変更時にプッシュイベントを受信します。
バッチ操作
1回のリクエストで複数のキーを作成、更新、または削除できます。各キーは同期をまたいで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