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

增加国际化支持后,samplesite语言设置作调整,且有两个位置无法实现国际化 #161

Open
ferristale opened this issue Jan 5, 2023 · 1 comment

Comments

@ferristale
Copy link

samplesite 里的语言设置是languageCode = "zh-CN"

新增国际化后需参照#159 相关说明改为

defaultContentLanguage = "zh-hant"
defaultContentLanguageInSubdir = false
hasCJKLanguage = true
languageCode = "zh-Hant"

(最后一句好像没有影响)

使用国际化后,主页的categoriestags无法自适应语言,而以英文显示
实例可参见网站

@lthcweb
Copy link

lthcweb commented Feb 18, 2023

删除 languageCode = "zh-CN"
增加:defaultContentLanguage = "zh-hant"
defaultContentLanguageInSubdir = false
hasCJKLanguage = true
languageCode = "zh-Hant"
别的都不需要,语言名字要小写。

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

No branches or pull requests

2 participants