i18next instance
Last updated
Last updated
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 and on the i18next website.
All additional options for react in init options:
bindI18n
'languageChanged'
which events trigger a rerender, can be set to false or string of events separated by ""
bindI18nStore
''
transEmptyNodeValue
''
how to treat failed lookups in Trans component
transSupportBasicHtmlNodes
true
transKeepBasicHtmlNodesFor
['br', 'strong', 'i', 'p']
useSuspense
true
If using Suspense or not
keyPrefix
undefined
define which events on should trigger a rerender
convert eg. <br/>
found in translations to a react component of type br
Which nodes not to convert in defaultValue generation in the Trans component.
the optional keyPrefix
will be automatically applied to the returned t
function in for example.
For more initialization options have look at the .