mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🌍 i18n: Add Danish and Czech and Catalan localization support (#7373)
* 🌍 i18n: Add Danish and Czech localization support * 🌍 i18n: Correct Czech language code from 'sc-CZ' to 'cs-CZ' * 🌍 i18n: Add Catalan localization support
This commit is contained in:
parent
3f4dd08589
commit
b0405be9ea
5 changed files with 15 additions and 1 deletions
|
|
@ -80,8 +80,10 @@ export const LangSelector = ({
|
|||
{ value: 'zh-Hans', label: localize('com_nav_lang_chinese') },
|
||||
{ value: 'zh-Hant', label: localize('com_nav_lang_traditional_chinese') },
|
||||
{ value: 'ar-EG', label: localize('com_nav_lang_arabic') },
|
||||
{ value: 'da-DK', label: localize('com_nav_lang_danish') },
|
||||
{ value: 'de-DE', label: localize('com_nav_lang_german') },
|
||||
{ value: 'es-ES', label: localize('com_nav_lang_spanish') },
|
||||
{ value: 'ca-ES', label: localize('com_nav_lang_catalan') },
|
||||
{ value: 'et-EE', label: localize('com_nav_lang_estonian') },
|
||||
{ value: 'fa-IR', label: localize('com_nav_lang_persian') },
|
||||
{ value: 'fr-FR', label: localize('com_nav_lang_french') },
|
||||
|
|
@ -94,6 +96,7 @@ export const LangSelector = ({
|
|||
{ value: 'ru-RU', label: localize('com_nav_lang_russian') },
|
||||
{ value: 'ja-JP', label: localize('com_nav_lang_japanese') },
|
||||
{ value: 'ka-GE', label: localize('com_nav_lang_georgian') },
|
||||
{ value: 'cs-CZ', label: localize('com_nav_lang_czech') },
|
||||
{ value: 'sv-SE', label: localize('com_nav_lang_swedish') },
|
||||
{ value: 'ko-KR', label: localize('com_nav_lang_korean') },
|
||||
{ value: 'vi-VN', label: localize('com_nav_lang_vietnamese') },
|
||||
|
|
|
|||
1
client/src/locales/ca/translation.json
Normal file
1
client/src/locales/ca/translation.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
1
client/src/locales/da/translation.json
Normal file
1
client/src/locales/da/translation.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -369,6 +369,7 @@
|
|||
"com_nav_lang_french": "Français ",
|
||||
"com_nav_lang_georgian": "ქართული",
|
||||
"com_nav_lang_german": "Deutsch",
|
||||
"com_nav_lang_danish": "Dansk",
|
||||
"com_nav_lang_hebrew": "עברית",
|
||||
"com_nav_lang_hungarian": "Magyar",
|
||||
"com_nav_lang_indonesia": "Indonesia",
|
||||
|
|
@ -380,7 +381,9 @@
|
|||
"com_nav_lang_portuguese": "Português",
|
||||
"com_nav_lang_russian": "Русский",
|
||||
"com_nav_lang_spanish": "Español",
|
||||
"com_nav_lang_catalan": "Català",
|
||||
"com_nav_lang_swedish": "Svenska",
|
||||
"com_nav_lang_czech": "Čeština",
|
||||
"com_nav_lang_thai": "ไทย",
|
||||
"com_nav_lang_traditional_chinese": "繁體中文",
|
||||
"com_nav_lang_turkish": "Türkçe",
|
||||
|
|
@ -870,4 +873,4 @@
|
|||
"com_ui_zoom": "Zoom",
|
||||
"com_user_message": "You",
|
||||
"com_warning_resubmit_unsupported": "Resubmitting the AI message is not supported for this endpoint."
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
|||
// Import your JSON translations
|
||||
import translationEn from './en/translation.json';
|
||||
import translationAr from './ar/translation.json';
|
||||
import translationCa from './ca/translation.json';
|
||||
import translationCs from './cs/translation.json';
|
||||
import translationDa from './da/translation.json';
|
||||
import translationDe from './de/translation.json';
|
||||
import translationEs from './es/translation.json';
|
||||
import translationEt from './et/translation.json';
|
||||
|
|
@ -35,8 +38,11 @@ export const defaultNS = 'translation';
|
|||
export const resources = {
|
||||
en: { translation: translationEn },
|
||||
ar: { translation: translationAr },
|
||||
ca: { translation: translationCa },
|
||||
cs: { translation: translationCs },
|
||||
'zh-Hans': { translation: translationZh_Hans },
|
||||
'zh-Hant': { translation: translationZh_Hant },
|
||||
da: { translation: translationDa },
|
||||
de: { translation: translationDe },
|
||||
es: { translation: translationEs },
|
||||
et: { translation: translationEt },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue