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

站点多语言切换效果有限 #2577

Open
leaflyingl opened this issue Jul 7, 2024 · 0 comments
Open

站点多语言切换效果有限 #2577

leaflyingl opened this issue Jul 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@leaflyingl
Copy link

描述bug
在 blog.config.js 里面设置了站点默认语言为 en-US,但实测无效,或者说效果不明显,包括其他语言,站点的一些主要栏目名称或者标题语言均不能切换到相应语言,开启切换按钮亦不能切换其他语言。

期望的正常结果
希望可以修正这个bug,并恢复语言切换按钮的功能
切换语言,但是保留博客标题和正文为英文或者中文是可以的,但是站点主题各项栏目设置最好还是改成相应语言。

复现步骤
1,在 blog.config.js 中,设置语言为英语:
LANG: process.env.NEXT_PUBLIC_LANG || 'en-US', // e.g 'zh-CN','en-US' see /lib/lang.js for more.
2,开启语言切换按钮:
THEME_SWITCH: process.env.NEXT_PUBLIC_THEME_SWITCH || true, // 是否显示切换主题按钮

环境

  • 【必填】NotionNext版本4.6.1
  • 【必填】主题 heo
  • 【必填】部署方案 vercel
  • 【可选】操作系统: Android, windows
  • 【可选】浏览器 chrome, firefox, yandex
@leaflyingl leaflyingl added the bug Something isn't working label Jul 7, 2024
@leaflyingl leaflyingl changed the title 站点多语言切换无效 站点多语言切换效果有限 Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants