French language

This commit is contained in:
Ben Grant 2021-05-25 15:11:37 +10:00
parent 92c5e0bbfc
commit 4c39bd7e07
10 changed files with 264 additions and 2 deletions

View file

@ -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',