On this page
Environments
i18next runs wherever JavaScript runs; how you load it differs between the browser, Node.js, Deno and React Native.
Browser
i18next supports the two most recent versions of evergreen browsers (Chrome, Firefox, Safari, etc.).
With a bundler, install it with npm: the package holds a CommonJS, an ES module and a UMD build, and its package.json points the bundler to the right one.
Without a bundler, load it with a script tag from a CDN, with a fixed version:
<script src="https://unpkg.com/i18next@27.2.3/dist/umd/i18next.min.js"></script>
cdnjs and jsDelivr serve the same files.
Node.js
Install i18next with npm and import it as in the basic sample. For Express, Fastify and other Node.js servers, i18next-http-middleware detects the language per request; i18next-fs-backend loads the translation files from the filesystem.
Deno
deno add jsr:@i18next/i18next
import i18next from '@i18next/i18next';
React Native
The formats use the Intl API and the plurals Intl.PluralRules; older environments may need their polyfills from FormatJS.