mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
feat: auto detect language (#947)
* added auto-detect language * fix(TranslationSelect) now saving the selected language between sessions * fix(LangSelector.spec) * fix(conflict) * fix(Swedish) sv-SE
This commit is contained in:
parent
2419af8748
commit
b48c618f32
12 changed files with 329 additions and 328 deletions
|
|
@ -2,7 +2,7 @@ import { atom } from 'recoil';
|
|||
|
||||
const lang = atom({
|
||||
key: 'lang',
|
||||
default: 'en',
|
||||
default: localStorage.getItem('lang') || 'en',
|
||||
});
|
||||
|
||||
export default { lang };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue