i18next instance (v9)
The instance is an initialized i18next instance. In the following code snippet, we add a backend to load translations from server and a language detector for detecting user language.
You can learn more about i18next and plugins on the i18next website.
All additional options for react in init options:
options
default
description
wait
false
assert all provided namespaces are loaded before rendering the component (can be set globally too); note that rendering will not be blocked again when dynamically updating ns
on the render prop component after initial mount
nsMode
'default'
default: namespaces will be loaded an the first will be set as default or fallback: namespaces will be used as fallbacks used in order provided
bindI18n
'languageChanged loaded'
which events trigger a rerender, can be set to false or string of events
bindStore
'added removed'
which events on store trigger a rerender, can be set to false or string of events
For more initialization options have look at the docs.
Last updated