2023-08-26 19:36:25 -04:00
# Default Language 🌍
## How to change the default language
2023-10-11 22:37:42 +02:00
- Open this file `client\src\store\language.ts`
- Modify the "default" in the lang variable with your locale identifier :
2023-08-26 19:36:25 -04:00
Example:
from **English** as default
```js
import { atom } from 'recoil';
const lang = atom({
key: 'lang',
2023-10-11 22:37:42 +02:00
default: localStorage.getItem('lang') || 'en-US',
2023-08-26 19:36:25 -04:00
});
export default { lang };
```
to **Italian** as default
```js
import { atom } from 'recoil';
const lang = atom({
key: 'lang',
2023-10-11 22:37:42 +02:00
default: localStorage.getItem('lang') || 'it-IT',
2023-08-26 19:36:25 -04:00
});
export default { lang };
```
---
2023-08-28 09:18:25 -04:00
> **❗If you wish to contribute your own translation to LibreChat, please refer to this document for instructions: [Contribute a Translation](../contributions/translation_contribution.md)**