【网站语言】blog.config.js配置中选择英文,然而任然是中文界面 #1986
Unanswered
Tianqi-Yao
asked this question in
Q&A
Replies: 2 comments
-
blog.config.js 中配置的是默认语言,但是网站会自动切换成当前访问者的浏览器语言,后者优先级更高。 按您需求,我会提交一个补丁,屏蔽掉自动切换网站语言的功能 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我将Notion Config中的LANG配置项关闭,在blog.config.js中配置 LANG: 'zh-CN' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
描述bug
LANG: process.env.NEXT_PUBLIC_LANG || 'en-US'
复现步骤
blog.config.js中 LANG默认配置是
LANG: process.env.NEXT_PUBLIC_LANG || 'zh-CN'
改为
LANG: process.env.NEXT_PUBLIC_LANG || 'en-US'
期望的正常结果
希望变成英文界面
截图

这里的一些文字应该显示英文,但实际显示的是中文
环境
补充说明

在themes/hexo/components/MenuGroupCard.js输出 local 变量,发现一开始是英文,后面被别的代码改回了中文
Beta Was this translation helpful? Give feedback.
All reactions