mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
* Update translation_contribution.md * fix(language) update to the new Locale Identifier * Update translation_contribution.md * Update default_language.md * Update translation_contribution.md * Update default_language.md * Update translation_contribution.md
36 lines
770 B
Markdown
36 lines
770 B
Markdown
# 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)**
|