Enhance i18n support by adding new language translations: Introduced Arabic, Croatian, Czech, Greek, Hungarian, Slovak, Slovenian, Swedish, Turkish, and updated existing language configurations. Updated available languages in LanguageContext and LanguageProvider to reflect the new additions, ensuring comprehensive localization across the application.
This commit is contained in:
@@ -5,18 +5,24 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
// Import all translation files
|
||||
import translationDE from './locales/de/translation.js';
|
||||
import translationEN from './locales/en/translation.js';
|
||||
import translationAR from './locales/ar/translation.js';
|
||||
import translationBG from './locales/bg/translation.js';
|
||||
import translationCS from './locales/cs/translation.js';
|
||||
import translationEL from './locales/el/translation.js';
|
||||
import translationES from './locales/es/translation.js';
|
||||
import translationFR from './locales/fr/translation.js';
|
||||
import translationHR from './locales/hr/translation.js';
|
||||
import translationHU from './locales/hu/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 translationRU from './locales/ru/translation.js';
|
||||
import translationSK from './locales/sk/translation.js';
|
||||
import translationSL from './locales/sl/translation.js';
|
||||
import translationSR from './locales/sr/translation.js';
|
||||
import translationSV from './locales/sv/translation.js';
|
||||
import translationTR from './locales/tr/translation.js';
|
||||
import translationUK from './locales/uk/translation.js';
|
||||
import translationZH from './locales/zh/translation.js';
|
||||
|
||||
const resources = {
|
||||
@@ -26,41 +32,59 @@ const resources = {
|
||||
en: {
|
||||
translation: translationEN
|
||||
},
|
||||
ar: {
|
||||
translation: translationAR
|
||||
},
|
||||
bg: {
|
||||
translation: translationBG
|
||||
},
|
||||
cs: {
|
||||
translation: translationCS
|
||||
},
|
||||
el: {
|
||||
translation: translationEL
|
||||
},
|
||||
es: {
|
||||
translation: translationES
|
||||
},
|
||||
fr: {
|
||||
translation: translationFR
|
||||
},
|
||||
hr: {
|
||||
translation: translationHR
|
||||
},
|
||||
hu: {
|
||||
translation: translationHU
|
||||
},
|
||||
it: {
|
||||
translation: translationIT
|
||||
},
|
||||
pl: {
|
||||
translation: translationPL
|
||||
},
|
||||
hu: {
|
||||
translation: translationHU
|
||||
},
|
||||
sr: {
|
||||
translation: translationSR
|
||||
ro: {
|
||||
translation: translationRO
|
||||
},
|
||||
ru: {
|
||||
translation: translationRU
|
||||
},
|
||||
uk: {
|
||||
translation: translationUK
|
||||
},
|
||||
sk: {
|
||||
translation: translationSK
|
||||
},
|
||||
cs: {
|
||||
translation: translationCS
|
||||
sl: {
|
||||
translation: translationSL
|
||||
},
|
||||
ro: {
|
||||
translation: translationRO
|
||||
sr: {
|
||||
translation: translationSR
|
||||
},
|
||||
sv: {
|
||||
translation: translationSV
|
||||
},
|
||||
tr: {
|
||||
translation: translationTR
|
||||
},
|
||||
uk: {
|
||||
translation: translationUK
|
||||
},
|
||||
zh: {
|
||||
translation: translationZH
|
||||
|
||||
Reference in New Issue
Block a user