French language
This commit is contained in:
parent
92c5e0bbfc
commit
4c39bd7e07
10 changed files with 264 additions and 2 deletions
|
|
@ -3,13 +3,15 @@ import { initReactI18next } from 'react-i18next';
|
|||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import Backend from 'i18next-http-backend';
|
||||
|
||||
import locales from 'res/dayjs_locales';
|
||||
|
||||
i18n
|
||||
.use(LanguageDetector)
|
||||
.use(Backend)
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
supportedLngs: ['en', 'de', 'es', 'ko'],
|
||||
supportedLngs: Object.keys(locales),
|
||||
ns: 'common',
|
||||
defaultNS: 'common',
|
||||
debug: process.env.NODE_ENV !== 'production',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue