React i18n eenvoudig gemaakt
Typeveilige internationalisatie voor React-applicaties met hooks, context en naadloze CDN-distributie.
Setup
Installation & Setup
Get started with @better-i18n/use-intl in three steps — install, wrap your app with the provider, and start translating.
Install
Add @better-i18n/use-intl and use-intl to your project.
npm install @better-i18n/use-intl use-intlWrap your app with BetterI18nProvider
Place the provider at the root of your component tree. It fetches messages from the CDN and makes them available via hooks.
import { BetterI18nProvider } from '@better-i18n/use-intl';
function App() {
return (
<BetterI18nProvider project="your-org/your-project" locale="en">
<YourApp />
</BetterI18nProvider>
);
}Use translations
Call useTranslations() in any component to access your translation keys with full TypeScript support.
import { useTranslations } from '@better-i18n/use-intl';
function MyComponent() {
const t = useTranslations('common');
return <h1>{t('welcome')}</h1>;
}Capabilities
Functies
Ga in minuten aan de slag met Better I18N in je React-app.
React Hooks API (useTranslations)
Volledige TypeScript-ondersteuning met autocomplete
Lazy loading voor optimale bundlegrootte
ICU-berichtformaat met meervouden
Variabele interpolatie en formattering
React Context voor localebeheer
SSR- en SSG-ondersteuning
Hot reload tijdens ontwikkeling
DevTools-integratie
import { useTranslations } from '@better-i18n/use-intl';
function MyComponent() {
const t = useTranslations('common');
return (
<div>
<h1>{t('welcome')}</h1>
<p>{t('greeting', { name: 'World' })}</p>
</div>
);
}Provider fetches from the CDN once
Every component reads from context
60s in-memory cache, offline fallback
Keys typed from your project
Ecosystem
Werkt met populaire React i18n-libraries
Better I18N vervangt je favoriete i18n-library niet, maar is de vertaalmanagementlaag die ze krachtiger maakt.
react-intl
De populairste React i18n-library met ondersteuning voor ICU-berichtformaat. Gebruikt door duizenden productie-apps.
Better I18N synchroniseert je vertalingen direct naar react-intl JSON-formaat. Bewerk in dashboard en zie wijzigingen meteen in je app.
react-i18next
Krachtig i18n-framework voor React gebaseerd op i18next. Functies zoals namespaces, interpolatie en meervouden ingebouwd.
Exporteer naar i18next-compatibele JSON met namespaces. Better I18N beheert de vertaalworkflow, i18next de runtime.
FormatJS
Een set libraries voor internationalisatie met onder andere react-intl. Ondersteunt ICU Message-syntaxis en CLDR-data.
Better I18N ondersteunt ICU-berichtformaat standaard. Beheer complexe meervouden en selecties visueel en exporteer naar FormatJS-formaat.
Lingui
Een leesbare, geautomatiseerde en geoptimaliseerde i18n-library. Sterke DX met macro-gebaseerde message-extractie.
Extraheer berichten met Lingui CLI, beheer vertalingen in Better I18N en sync automatisch terug via GitHub-integratie.
Keep reading
Gerelateerd
Related Articles
How to Add i18n to Shopify Hydrogen (Complete Guide)
Shopify Hydrogen is the modern way to build custom storefronts — but adding internationalization (i18n) can be challenging. You need locale-aware routing,...
Read More →Django i18n with AI Translation: Complete Setup Guide
Django i18n with AI Translation: Complete Setup Guide Django ships with a mature internationalization (i18n) framework built on GNU gettext. When you...
Read More →Introducing the Better i18n CLI: Manage Translations from Your Terminal
Until now, managing translation keys on Better i18n meant using the dashboard UI or connecting an MCP server to your AI assistant. Both work great — but...
Read More →Verken i18n voor andere frameworks
“De CDN-publicatiefunctie is geweldig. We pushen vertalingen en ze staan direct live — geen deploys, geen cache-invalidering.”

Samet Selcuk
Oprichter, Hellospace
Begin met bouwen met React i18n
Gratis pakket beschikbaar. Geen creditcard vereist.