Skip to content
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

国际化localStorage存放的key期望自定义 ‘umi_locale’自定义key #12716

Open
13621272512 opened this issue Sep 23, 2024 · 1 comment · May be fixed by #12718
Open

国际化localStorage存放的key期望自定义 ‘umi_locale’自定义key #12716

13621272512 opened this issue Sep 23, 2024 · 1 comment · May be fixed by #12718

Comments

@13621272512
Copy link

Background

两个umi项目嵌套 共用localStorage同一个‘umi_locale’ 外层切换国际化 通知内层切换 外层已经把‘umi_locale’ 改为en-US 内层调用setLocale(‘en-US’)发现localStorage获取的umi_locale已经是en-US 所以调用updater语言失败
image

@xiaohuoni xiaohuoni linked a pull request Sep 23, 2024 that will close this issue
@13621272512
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant