Adding language detection
This commit is contained in:
1 parent
355ef79d20
commit
21146549f7
3 files changed
+7
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import i18n from 'i18next';
|
||||
import { reactI18nextModule } from 'react-i18next';
|
||||
import LangDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
import locales from './locales';
|
||||
|
||||
i18n
|
||||
.use(reactI18nextModule)
|
||||
.use(LangDetector)
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
debug: (process.env.NODE_ENV !== 'production'),
|
||||
|
||||
Reference in new issue
Block a user