halo-dev / theme-earth

Halo 2.0 的默认主题
https://demo.halo.run/?preview-theme=theme-earth
GNU General Public License v3.0
43 stars 58 forks source link

Support English Version #75

Open LarryDpk opened 1 year ago

LarryDpk commented 1 year ago

Hi team, Can this awesome theme support English version? Also provide a switch button for the languages switching.

JohnNiang commented 1 year ago

It would be better if you explain which parts you want to support.

In fact, we support locale mechanism but we haven't adapt it to this theme currently. If you want learn more about i18n, please refer to https://github.com/halo-dev/rfcs/issues/6.

LarryDpk commented 1 year ago

My requirement is easier, I want the page show in English for all Title/Label. For example: 标签 --> tag, 更多--> more, 上一页、下一页 --> last page, next page

image

to be: Posts, Categories, Comment, Read

JohnNiang commented 1 year ago

/kind feature /cc @ruibaby

firstsaofan commented 1 year ago

将来是否会支持一篇文章支持多种语言,多语言内容自己编写。然后根据用户的url或者系统默认语言显示对应的版本。虽然现在我可以写2篇博客添加对应的超链接,但是这样博客会多了同样的文章。

Will it be possible to support multiple languages for an article in the future, and write your own content in multiple languages. Then display the corresponding version based on the user's URL or system default language. Although I can now write 2 blogs with corresponding hyperlinks, this will add the same article to the

多语言版本