i18next instance
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 |
---|---|---|
bindI18n | 'languageChanged' | which events trigger a rerender, can be set to false or string of events separated by "" |
bindI18nStore | '' | define which events on resourceStore should trigger a rerender |
transEmptyNodeValue | '' | how to treat failed lookups in Trans component |
transSupportBasicHtmlNodes | true | convert eg. |
transKeepBasicHtmlNodesFor | ['br', 'strong', 'i', 'p'] | Which nodes not to convert in defaultValue generation in the Trans component. See Trans component |
useSuspense | true | If using Suspense or not |
keyPrefix | undefined | the optional |
For more initialization options have look at the docs.
Last updated