Vai al contenuto
React SDK

React i18n reso semplice

Internazionalizzazione type-safe per applicazioni React con hook, context e distribuzione CDN senza interruzioni.

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

Funzionalità

Inizia con Better I18N nella tua app React in pochi minuti.

API React Hooks (useTranslations)

Supporto completo TypeScript con completamento automatico

Lazy loading per dimensione bundle ottimale

Formato messaggi ICU con plurali

Interpolazione variabili e formattazione

React Context per la gestione della lingua

Supporto SSR e SSG

Hot reload durante lo sviluppo

Integrazione DevTools

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

Funziona con le librerie i18n React più diffuse

Better I18N non sostituisce la tua libreria i18n preferita: è il layer di gestione traduzioni che le rende ancora più potenti.

react-intl

La libreria i18n per React più popolare con supporto al formato messaggi ICU. Usata da migliaia di app in produzione.

Better I18N sincronizza le tue traduzioni direttamente nel formato JSON di react-intl. Modifica nella dashboard e vedi subito i cambiamenti nell'app.

react-i18next

Potente framework i18n per React basato su i18next. Funzionalità integrate come namespace, interpolazione e plurali.

Esporta JSON compatibile con i18next e namespace. Better I18N gestisce il workflow di traduzione, i18next gestisce il runtime.

FormatJS

Una suite di librerie per l'internazionalizzazione che include react-intl. Supporta la sintassi ICU Message e i dati CLDR.

Better I18N supporta nativamente il formato messaggi ICU. Gestisci plurali e selezioni complesse in modo visuale, esporta nel formato FormatJS.

Lingui

Una libreria i18n leggibile, automatizzata e ottimizzata. Ottima DX con estrazione messaggi basata su macro.

Estrai i messaggi con Lingui CLI, gestisci le traduzioni in Better I18N e sincronizza automaticamente tramite integrazione GitHub.

Keep reading

Correlati

Esplora i18n per altri framework

La funzionalità di pubblicazione CDN è incredibile. Pubblichiamo le traduzioni e sono subito online: nessun deploy, nessuna invalidazione della cache.

Samet Selcuk

Fondatore, Hellospace

Inizia a sviluppare con React i18n

Piano gratuito disponibile. Nessuna carta di credito richiesta.