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

怎么实现国际化 #539

Open
redmageditto opened this issue Jun 23, 2024 · 1 comment
Open

怎么实现国际化 #539

redmageditto opened this issue Jun 23, 2024 · 1 comment

Comments

@redmageditto
Copy link

目前使用的 Sakura 版本?

2.3.0

目前使用的 halo 版本?

2.16.3

建议/问题

怎么实现网站的国际化呢?我是小白,看了食用说明的国际化部分还是没搞清楚

@LIlGG
Copy link
Owner

LIlGG commented Jun 24, 2024

主题目前已经内嵌了国际化方案。如果仅仅是使用,那么无需进行更改,主题会自动检测用户代理的语言设置。例如如果你的浏览器设置为英文,则主题也会显示为英文。

如果需要增加新的语言,则直接在 https://github.com/LIlGG/halo-theme-sakura/blob/main/src/languages/ 中新增并提交 pr 即可。

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