update to master

This commit is contained in:
YouROK
2021-06-08 14:12:32 +03:00
parent 009b51f578
commit 533ab85f9f
89 changed files with 46034 additions and 8804 deletions

16
web/src/i18n.js Normal file
View File

@@ -0,0 +1,16 @@
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
import LanguageDetector from 'i18next-browser-languagedetector'
import translationEN from 'locales/en/translation.json'
import translationRU from 'locales/ru/translation.json'
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
fallbackLng: 'en', // default language will be used if none of declared lanuages detected (en, ru)
interpolation: { escapeValue: false }, // react already safes from xss
resources: { en: { translation: translationEN }, ru: { translation: translationRU } },
})
export default i18n