mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
feat: German translations (#772)
* Language translation: German translation * Language translation: German translation * Language translation: German translation
This commit is contained in:
parent
759e585c29
commit
de34d8b47c
3 changed files with 206 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import Chinese from './languages/Zh';
|
|||
import Italian from './languages/It';
|
||||
import Portuguese from './languages/Br';
|
||||
import Spanish from './languages/Es';
|
||||
import German from './languages/De';
|
||||
// === import additional language files here === //
|
||||
|
||||
// New method on String allow using "{\d}" placeholder for
|
||||
|
|
@ -39,6 +40,9 @@ export const getTranslations = (langCode: string) => {
|
|||
if (langCode === 'es') {
|
||||
return Spanish;
|
||||
}
|
||||
if (langCode === 'de') {
|
||||
return German;
|
||||
}
|
||||
// === add conditionals here for additional languages here === //
|
||||
return English; // default to English
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue