mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
🌐: Japanese translation (#895)
This commit is contained in:
parent
a22b59f109
commit
c18e122d1d
4 changed files with 260 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import Portuguese from './languages/Br';
|
|||
import Spanish from './languages/Es';
|
||||
import French from './languages/Fr';
|
||||
import Russian from './languages/Ru';
|
||||
import Japanese from './languages/Jp';
|
||||
// === import additional language files here === //
|
||||
|
||||
// New method on String allow using "{\d}" placeholder for
|
||||
|
|
@ -55,6 +56,9 @@ export const getTranslations = (langCode: string) => {
|
|||
if (langCode === 'ru') {
|
||||
return Russian;
|
||||
}
|
||||
if (langCode === 'jp') {
|
||||
return Japanese;
|
||||
}
|
||||
|
||||
// === add conditionals here for additional languages here === //
|
||||
return English; // default to English
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue