i18next loads and applies translation files in browser, Node.js, and Deno apps. It handles plurals, context, nesting, variables, backends, caching, and language detection.
Overview
i18next is a widely used internationalization core for JavaScript environments. Applications keep plain JSON translation files per language and namespace alongside the app and resolve strings at runtime or build time with a shared t function across stacks.
The framework connects to backends for loading translations, optional caches, and user language detection. It implements plural rules, contextual variants, nested keys, and variable interpolation, with extension points such as sprintf-style formatting. The same keys work across React, Next.js, Astro, Vue, Angular, Svelte, React Native, and server middleware from the ecosystem.
Documentation and CLI tooling help extract hardcoded strings, check missing locales in CI, and manage namespaces. The core library ships without mandatory extra packages; framework integrations are maintained separately by the community and official adapters.
Optional Locize integration from the maintainers provides hosted translation management, but i18next itself runs fully offline with local JSON files only.
Key features
- Runtime and build-time translation
- Plural and context rules
- Backend translation loading
- Language detection hooks
- Nesting and variable interpolation
- Framework adapters ecosystem
- i18next-cli extract and status
- Works in browser and Node.js
Use cases
- Multilingual React or Next apps
- Static site localization
- Node.js API message catalogs
- CI checks for missing locales
- Shared keys across web stacks