mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-18 08:25:30 +01:00
Feature Localization (i18n) Support (#557)
* init localization * Update defaul to en * Fix merge issue and import path. * Set default to en * Change jsx to tsx * Update the password max length string. * Remove languageContext as using the recoil instead.
This commit is contained in:
parent
13627c7f4f
commit
47e5493744
15 changed files with 29076 additions and 115 deletions
|
|
@ -7,6 +7,7 @@ import submission from './submission';
|
|||
import search from './search';
|
||||
import preset from './preset';
|
||||
import token from './token';
|
||||
import lang from './language';
|
||||
|
||||
export default {
|
||||
...conversation,
|
||||
|
|
@ -17,5 +18,6 @@ export default {
|
|||
...submission,
|
||||
...search,
|
||||
...preset,
|
||||
...token
|
||||
...token,
|
||||
...lang
|
||||
};
|
||||
|
|
|
|||
8
client/src/store/language.js
Normal file
8
client/src/store/language.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { atom } from 'recoil';
|
||||
|
||||
const lang = atom({
|
||||
key: 'lang',
|
||||
default: 'en'
|
||||
});
|
||||
|
||||
export default { lang };
|
||||
Loading…
Add table
Add a link
Reference in a new issue