Adding language detection
This commit is contained in:
@@ -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