mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 18:56:17 +01:00
i18n
This commit is contained in:
@@ -4,6 +4,11 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
import en from '../locales/en/translation.json';
|
||||
import es from '../locales/es/translation.json';
|
||||
import fr from '../locales/fr/translation.json';
|
||||
import de from '../locales/de/translation.json';
|
||||
import ru from '../locales/ru/translation.json';
|
||||
import zhHans from '../locales/zh-CN/translation.json';
|
||||
import zhHant from '../locales/zh-HK/translation.json';
|
||||
|
||||
i18n
|
||||
.use(LanguageDetector)
|
||||
@@ -11,7 +16,14 @@ i18n
|
||||
.init({
|
||||
resources: {
|
||||
en: { translation: en },
|
||||
es: { translation: es }
|
||||
es: { translation: es },
|
||||
fr: { translation: fr },
|
||||
de: { translation: de },
|
||||
ru: { translation: ru },
|
||||
// Chinese (Simplified)
|
||||
'zh-CN': { translation: zhHans },
|
||||
// Chinese (Traditional)
|
||||
'zh-HK': { translation: zhHant },
|
||||
},
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
|
||||
Reference in New Issue
Block a user