mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
🇸🇪: Swedish Translation (#940)
* Language translation: swedish translation * fix: remove unwanted row in Sv translation remove com_nav_language --------- Co-authored-by: Marcus Nätteldal <marcus.natteldal@ltu.se>
This commit is contained in:
parent
9491b753c3
commit
ccb46164c0
4 changed files with 232 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import Spanish from './languages/Es';
|
|||
import French from './languages/Fr';
|
||||
import Russian from './languages/Ru';
|
||||
import Japanese from './languages/Jp';
|
||||
import Swedish from './languages/Sv';
|
||||
// === import additional language files here === //
|
||||
|
||||
// New method on String allow using "{\d}" placeholder for
|
||||
|
|
@ -59,6 +60,9 @@ export const getTranslations = (langCode: string) => {
|
|||
if (langCode === 'jp') {
|
||||
return Japanese;
|
||||
}
|
||||
if (langCode === 'sv') {
|
||||
return Swedish;
|
||||
}
|
||||
|
||||
// === add conditionals here for additional languages here === //
|
||||
return English; // default to English
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue