Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active April 6, 2020 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/100f35b5f4eceb2bc2b5761b123bb58a to your computer and use it in GitHub Desktop.
Save theodesp/100f35b5f4eceb2bc2b5761b123bb58a to your computer and use it in GitHub Desktop.
import i18next from 'i18next';
function setupI18next(fallbackLng, i18nextOptions) {
i18next.init({
debug: false,
defaultNS: 'messages',
fallbackLng,
react: {
useSuspense: false,
},
...i18nextOptions,
});
return i18next;
}
export default setupI18next;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment