by better-i18n
Manage translations across Next.js, React, and Expo/React Native projects with type‑safe TypeScript SDKs, CDN delivery, GitHub‑first workflow, and AI‑assisted translation.
Better i18n provides a set of TypeScript‑first SDKs and a CLI that let developers synchronize, translate, and serve localization data directly from GitHub, a CDN edge network, and AI translation models. The ecosystem covers Next.js, generic React, and Expo/React Native, and includes an MCP server for AI agents to interact with the translation workflow.
npm install -g @better-i18n/cli
npx @better-i18n/cli init
npx @better-i18n/cli scan
npx @better-i18n/cli sync
npm install @better-i18n/next
Then configure the middleware as shown in the README.npm install @better-i18n/mcp # or use npx when needed
Follow the platform docs to connect Claude, Cursor, Windsurf, etc.Q: Do I need a dedicated server to run the MCP component?
A: No. The MCP package can be started with a simple npx @better-i18n/mcp command (or installed globally) and configured with your API keys.
Q: Can I use Better i18n without the AI features? A: Yes. The SDKs work with manually supplied translation files; AI translation is optional and only invoked via the CLI or MCP when configured.
Q: How does CDN delivery work with my existing deployment? A: Translation JSON files are uploaded to Cloudflare’s edge network by the platform. Your app fetches them at runtime, so no redeployment is required for updates.
Most localization tools weren't built for modern developer workflows. Better i18n is different:
| Feature | Better i18n | Crowdin | Lokalise | Phrase |
|---|---|---|---|---|
| GitHub-first workflow | ✅ | Partial | Partial | ❌ |
| AI translation with context | ✅ | ✅ | ✅ | ✅ |
| CDN delivery (no redeploy) | ✅ | ❌ | ❌ | ❌ |
| TypeScript SDKs | ✅ | ❌ | ❌ | ❌ |
| MCP server for AI agents | ✅ | ❌ | ❌ | ❌ |
| CLI scanner (unused key detection) | ✅ | ❌ | ❌ | ❌ |
| ICU MessageFormat support | ✅ | ✅ | ✅ | ✅ |
| Open-source SDKs | ✅ | Partial | ❌ | ❌ |
| Free tier | ✅ | ✅ | ❌ | ❌ |
| Package | Description | Version |
|---|---|---|
@better-i18n/cli |
CLI for scanning, syncing, and managing translations | |
@better-i18n/next |
Next.js SDK with middleware and hooks | |
@better-i18n/use-intl |
React hooks for use-intl integration | |
@better-i18n/expo |
Expo / React Native integration with offline caching | |
@better-i18n/core |
Core utilities for locale handling and formatting | |
@better-i18n/mcp |
MCP server for AI agent integration | |
@better-i18n/schemas |
Shared Zod validation schemas |
# Install the CLI
npm install -g @better-i18n/cli
# Initialize in your project
npx @better-i18n/cli init
# Scan your codebase for translation keys
npx @better-i18n/cli scan
# Sync translations with the Better i18n platform
npx @better-i18n/cli sync
npm install @better-i18n/next
// middleware.ts
import { createI18nMiddleware } from '@better-i18n/next';
export default createI18nMiddleware({
locales: ['en', 'tr', 'de'],
defaultLocale: 'en',
});
See the Next.js integration guide for routing, server components, and metadata setup.
npm install @better-i18n/use-intl
import { BetterI18nProvider, useTranslations } from '@better-i18n/use-intl';
function App() {
return (
<BetterI18nProvider locale="en" messages={messages}>
<MyComponent />
</BetterI18nProvider>
);
}
function MyComponent() {
const t = useTranslations('common');
return <h1>{t('welcome')}</h1>;
}
npm install @better-i18n/expo
import { BetterI18nExpoProvider, useTranslations } from '@better-i18n/expo';
export default function App() {
return (
<BetterI18nExpoProvider
projectId="your-project-id"
defaultLocale="en"
fallbackMessages={fallback}
>
<HomeScreen />
</BetterI18nExpoProvider>
);
}
Supports offline caching, OTA translation updates, and automatic locale detection. See the Expo guide.
npm install @better-i18n/mcp
Connect AI assistants like Claude, Cursor, or Windsurf to your translation workflow through the Model Context Protocol.
Give your AI agent permanent better-i18n knowledge — SDK setup, key naming, CDN behavior, GitHub sync, and MCP tool usage — without pasting prompts each session.
npx skills add better-i18n/skills
Works with Claude Code, Cursor, Windsurf, and any agent that supports custom instructions. See github.com/better-i18n/skills.
Visit docs.better-i18n.com for full documentation:
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
MIT — Better i18n
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by lingodotdev
Provides an AI‑powered toolkit for instant localization of web and mobile applications using LLMs, supporting build‑time compilation, CLI commands, CI/CD automation, and real‑time SDK translation.
by translated
Provides translation capabilities via a Model Context Protocol server, supporting language detection, context‑aware translations, and management of translation memories, all accessible through HTTP or STDIO interfaces.
by DeepLcom
Provides translation and rephrasing capabilities powered by the DeepL API via a Model Context Protocol server.
by intento
Provides translation capabilities via the Intento API through an MCP server, exposing a translate tool and a language‑codes resource for agents.
by vlinr
Provides automated translation of localization files (.ts, .js, .json) using large language models, extracting the target language from the filename and supporting both single‑file and directory batch processing.
by netdata
Delivers real‑time, per‑second infrastructure monitoring with zero‑configuration agents, on‑edge machine‑learning anomaly detection, and built‑in dashboards.
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.