Skip to content

fix: apply saved language on page load - #202

Closed
HyacinthHaru wants to merge 1 commit into
mirrorz-org:masterfrom
HyacinthHaru:fix-saved-language
Closed

HyacinthHaru wants to merge 1 commit into
mirrorz-org:masterfrom
HyacinthHaru:fix-saved-language

Conversation

@HyacinthHaru

Copy link
Copy Markdown

任何切换语言的用户,每次刷新页面,语言都会恢复成站点默认。

改把同样的读取逻辑放进 src/i18n.js:有合法的已保存值时使用它,否则仍用 config.language,并同步设置document.documentElement.lang。没有保存过语言的用户行为不变。

@taoky

taoky commented Oct 24, 2026

Copy link
Copy Markdown
Member

Replaced by #204 (using browser language as default)

@taoky taoky closed this Oct 24, 2026
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