-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
🐛 fix: fix normalize russian locale #1903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@MillerTGr is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1903 +/- ##
==========================================
- Coverage 92.57% 90.35% -2.22%
==========================================
Files 239 248 +9
Lines 13066 14325 +1259
Branches 1562 966 -596
==========================================
+ Hits 12096 12944 +848
- Misses 970 1381 +411 ☔ View full report in Codecov by Sentry. |
❤️ Great PR @MillerTGr ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 0.145.13](v0.145.12...v0.145.13) <sup>Released on **2024-04-07**</sup> #### ♻ Code Refactoring - **misc**: Refactor the model settings for more clean code. #### 🐛 Bug Fixes - **misc**: Fix normalize russian locale. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the model settings for more clean code, closes [#1906](#1906) ([db5d3ac](db5d3ac)) #### What's fixed * **misc**: Fix normalize russian locale, closes [#1903](#1903) ([e86b596](e86b596)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 0.145.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.25.11](v1.25.10...v1.25.11) <sup>Released on **2024-04-07**</sup> #### ♻ Code Refactoring - **misc**: Refactor the model settings for more clean code. #### 🐛 Bug Fixes - **misc**: Fix normalize russian locale. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the model settings for more clean code, closes [lobehub#1906](https://github.com/bentwnghk/lobe-chat/issues/1906) ([db5d3ac](db5d3ac)) #### What's fixed * **misc**: Fix normalize russian locale, closes [lobehub#1903](https://github.com/bentwnghk/lobe-chat/issues/1903) ([e86b596](e86b596)) </details> <div align="right"> [](#readme-top) </div>
### [Version 0.145.13](lobehub/lobe-chat@v0.145.12...v0.145.13) <sup>Released on **2024-04-07**</sup> #### ♻ Code Refactoring - **misc**: Refactor the model settings for more clean code. #### 🐛 Bug Fixes - **misc**: Fix normalize russian locale. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the model settings for more clean code, closes [lobehub#1906](lobehub#1906) ([db5d3ac](lobehub@db5d3ac)) #### What's fixed * **misc**: Fix normalize russian locale, closes [lobehub#1903](lobehub#1903) ([e86b596](lobehub@e86b596)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Normalize the locale handling to always return the expected ru-RU name.
📝 补充信息 | Additional Information
In some browsers, the locale is returned as ru instead of ru-RU, resulting in an error: Error: Cannot find module './ru.js'.
The function should ensure that it always returns ru-RU, regardless of these discrepancies.