File size: 770 Bytes
9705b6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# Default Language ๐
## How to change the default language
- Open this file `client\src\store\language.ts`
- Modify the "default" in the lang variable with your locale identifier :
Example:
from **English** as default
```js
import { atom } from 'recoil';
const lang = atom({
key: 'lang',
default: localStorage.getItem('lang') || 'en-US',
});
export default { lang };
```
to **Italian** as default
```js
import { atom } from 'recoil';
const lang = atom({
key: 'lang',
default: localStorage.getItem('lang') || 'it-IT',
});
export default { lang };
```
---
> **โIf you wish to contribute your own translation to LibreChat, please refer to this document for instructions: [Contribute a Translation](../contributions/translation_contribution.md)**
|