i18next comes with a lot of modules to enhance the features available. There are modules to:

  • load resources, eg. via xhr or from filesystem (node.js)

  • cache resources using eg. i18next-localstorage-backend

  • detect user language by querystring, navigator, cookie, …

  • post processors to further manipulate values, eg. to add sprintf support

import i18next from 'i18next';
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import sprintf from 'i18next-sprintf-postprocessor';
.use(Backend) // or any other backend implementation
.use(LanguageDetector) // or any other implementation
.use(sprintf) // or any other post processor

For usage details please read the documentation of the plugin (readme file in the repository or npm website).