Skip to content

多语言动态切换#109

Merged
slowlyo merged 2 commits intoslowlyo:masterfrom
luscio:dev
May 23, 2024
Merged

多语言动态切换#109
slowlyo merged 2 commits intoslowlyo:masterfrom
luscio:dev

Conversation

@luscio
Copy link
Contributor

@luscio luscio commented May 21, 2024

新增多语言动态切换

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方不应该再创建一个redux , 既然你切换语言后刷新了页面, 直接从localStorage里面取就行了, 没有就默认 en , 这里面用store我记着在初始化的时候是存在问题的, 而且这样就出现了两个store实例了

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果我某个列表有个字段就叫locale呢, 筛选的时候不就影响到框架功能了~

@slowlyo slowlyo merged commit 86c150e into slowlyo:master May 23, 2024
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 this pull request may close these issues.

2 participants