Add Chinese language support and update localization files: Introduced translations for Chinese (zh) in LanguageSwitcher and i18n configuration. Removed outdated translation files for several languages, streamlining localization resources. Enhanced language context to include Chinese in available languages.
This commit is contained in:
@@ -3,28 +3,32 @@ import { initReactI18next } from 'react-i18next';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
|
||||
// Import all translation files
|
||||
import translationDE from './locales/de/translation.json';
|
||||
import translationEN from './locales/en/translation.json';
|
||||
/*import translationES from './locales/es/translation.json';
|
||||
import translationFR from './locales/fr/translation.json';
|
||||
import translationIT from './locales/it/translation.json';
|
||||
import translationPL from './locales/pl/translation.json';
|
||||
import translationHU from './locales/hu/translation.json';
|
||||
import translationSR from './locales/sr/translation.json';
|
||||
import translationBG from './locales/bg/translation.json';
|
||||
import translationRU from './locales/ru/translation.json';
|
||||
import translationUK from './locales/uk/translation.json';
|
||||
import translationSK from './locales/sk/translation.json';
|
||||
import translationCS from './locales/cs/translation.json';
|
||||
import translationRO from './locales/ro/translation.json';
|
||||
*/
|
||||
import translationDE from './locales/de/translation.js';
|
||||
import translationEN from './locales/en/translation.js';
|
||||
import translationBG from './locales/bg/translation.js';
|
||||
import translationES from './locales/es/translation.js';
|
||||
import translationFR from './locales/fr/translation.js';
|
||||
import translationIT from './locales/it/translation.js';
|
||||
import translationPL from './locales/pl/translation.js';
|
||||
import translationHU from './locales/hu/translation.js';
|
||||
import translationSR from './locales/sr/translation.js';
|
||||
import translationRU from './locales/ru/translation.js';
|
||||
import translationUK from './locales/uk/translation.js';
|
||||
import translationSK from './locales/sk/translation.js';
|
||||
import translationCS from './locales/cs/translation.js';
|
||||
import translationRO from './locales/ro/translation.js';
|
||||
import translationZH from './locales/zh/translation.js';
|
||||
|
||||
const resources = {
|
||||
de: {
|
||||
translation: translationDE
|
||||
},
|
||||
en: {
|
||||
translation: translationEN
|
||||
}/*,
|
||||
},
|
||||
bg: {
|
||||
translation: translationBG
|
||||
},
|
||||
es: {
|
||||
translation: translationES
|
||||
},
|
||||
@@ -43,9 +47,6 @@ const resources = {
|
||||
sr: {
|
||||
translation: translationSR
|
||||
},
|
||||
bg: {
|
||||
translation: translationBG
|
||||
},
|
||||
ru: {
|
||||
translation: translationRU
|
||||
},
|
||||
@@ -60,7 +61,10 @@ const resources = {
|
||||
},
|
||||
ro: {
|
||||
translation: translationRO
|
||||
}*/
|
||||
},
|
||||
zh: {
|
||||
translation: translationZH
|
||||
}
|
||||
};
|
||||
|
||||
i18n
|
||||
|
||||
Reference in New Issue
Block a user