Naar inhoud gaan
React SDK

React i18n eenvoudig gemaakt

Typeveilige internationalisatie voor React-applicaties met hooks, context en naadloze CDN-distributie.

Source string

useTranslations('common')

Edited in code, picked up on the next scan

Glossary

Brand terms stay untranslated

AI translation

Written from your product context, not word by word

Git sync

chore/i18n-sync

Opened as a pull request for review

Published

de.json

Live on the CDN, no deploy

Published

fr.json

Live on the CDN, no deploy

Published

ja.json

Live on the CDN, no deploy

Published

tr.json

Live on the CDN, no deploy

Better I18N

One source of truth for every language

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.

terminal
npm install @better-i18n/use-intl use-intl

Wrap 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.

App.tsx
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.

MyComponent.tsx
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

MyComponent.tsx
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>
  );
}
<BetterI18nProvider>

Provider fetches from the CDN once

useTranslations('common')

Every component reads from context

TtlCache · 60s

60s in-memory cache, offline fallback

t('welcome')

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

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.