-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
🐛 fix: switch language correctly #7131
base: main
Are you sure you want to change the base?
Conversation
@AmAzing129 is attempting to deploy a commit to the LobeChat Desktop 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 |
TestGru AssignmentSummary
Tip You can |
发现注册时也有语言设置,也会导致不一致,要不要整体统一下 |
I found that there are language settings when registering, which can also lead to inconsistency. Should I align the whole thing? |
这个是之前改的,User setting 里的 language 已经废弃了,全部切到了 localStorage 里。所以读值应该读 localStorage 里的值,用 systemStatus 中的状态。 原因是如果存到 user 设置里会让切换语言变得非常慢(需要db更新) |
This was changed before. The language in User settings has been abandoned and has been cut into localStorage. Therefore, the reading value should be read in localStorage and use the status in systemStatus. The reason is that if stored in the user settings, it will make switching languages very slow (db update is required) |
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information