Skip to content

Instantly share code, notes, and snippets.

@kutanov kutanov/app.js
Last active Feb 15, 2020

Embed
What would you like to do?
app.js fragment
i18next
.use(Backend)
.use(i18nextMiddleware.LanguageDetector)
.init({
backend: {
loadPath: __dirname + '/locales/{{lng}}/{{ns}}.json',
},
detection: {
order: ['querystring', 'cookie'],
caches: ['cookie']
},
fallbackLng: 'en',
preload: ['en', 'ru']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.