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:
sebseb7
2025-07-16 03:34:10 +02:00
parent 5c90d048fb
commit 859a2c06d8
28 changed files with 2496 additions and 1761 deletions

View File

@@ -53,7 +53,8 @@ class LanguageSwitcher extends Component {
'uk': () => import('country-flag-icons/react/3x2').then(m => m.UA),
'sk': () => import('country-flag-icons/react/3x2').then(m => m.SK),
'cs': () => import('country-flag-icons/react/3x2').then(m => m.CZ),
'ro': () => import('country-flag-icons/react/3x2').then(m => m.RO)
'ro': () => import('country-flag-icons/react/3x2').then(m => m.RO),
'zh': () => import('country-flag-icons/react/3x2').then(m => m.CN)
};
const flagLoader = flagMap[lang];
@@ -143,7 +144,8 @@ class LanguageSwitcher extends Component {
'uk': 'UA',
'sk': 'SK',
'cs': 'CZ',
'ro': 'RO'
'ro': 'RO',
'zh': 'CN'
};
return labels[lang] || lang.toUpperCase();
};
@@ -163,7 +165,8 @@ class LanguageSwitcher extends Component {
'uk': 'Українська',
'sk': 'Slovenčina',
'cs': 'Čeština',
'ro': 'Română'
'ro': 'Română',
'zh': '中文'
};
return names[lang] || lang;
};