Last active
February 15, 2020 00:42
-
-
Save kutanov/375b5d3a10d3c93dc63468446325f781 to your computer and use it in GitHub Desktop.
app.js fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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