Skip to main content
Version: 5.x.x

Installation (i18next)

To install Tolgee i18next integration library run:

npm install @tolgee/i18next

Then wrap your i18next instance withTolgee:

import i18n from 'i18next';
import { withTolgee, Tolgee, I18nextPlugin, FormatSimple, DevTools } from '@tolgee/i18next';

const tolgee = Tolgee()
// for development
apiUrl: ...,
apiKey: ...,

// for production
staticData: {

withTolgee(i18n, tolgee)

Now you can use regular i18next translation features.

Language detection/changes

Tolgee will follow i18next configuration, so you can use i18next language detectors or set the language manually.

To change language use i18next.changeLanguage function.

Preparing for production

In production mode, you should never use localization data from Tolgee REST API and never leak your API key. You should use data exported from the Tolgee platform. To get exported localization files, see exporting translations.

Then provide the data via Tolgee configuration options described in Providing static data.