🌍 fix(Translations): Map Partial langCode and Add Unit Tests (#2240)

This commit is contained in:
Danny Avila 2024-03-29 12:17:07 -04:00 committed by GitHub
parent dec7879cc1
commit bc2a628902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 6 deletions

View file

@ -15,8 +15,8 @@ weight: -8
### Preparation
Fork the [LibreChat repository](https://github.librechat.ai) and download it using git clone. See: [Getting Started for Contributors - GitHub](./how_to_contribute.md#github)
### Add your language to `Translation.tsx`:
- Navigate to the `client\src\localization` folder and open the `Translation.tsx` file
### Add your language to `Translation.ts`:
- Navigate to the `client\src\localization` folder and open the `Translation.ts` file
- At the beginning of the code, add your language below all the others in this format:
@ -102,7 +102,7 @@ If you followed everything you should have ^^**one new file**^^ and ^^**3 modif
```bash
new file: client/src/localization/languages/**.tsx <-----new language
modified: client/src/components/Nav/SettingsTabs/General.tsx
modified: client/src/localization/Translation.tsx
modified: client/src/localization/Translation.ts
modified: client/src/localization/languages/Eng.tsx
```
!!! tip