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

feat: 支持国际化 #546

Closed
ruibaby opened this issue Feb 5, 2020 · 5 comments
Closed

feat: 支持国际化 #546

ruibaby opened this issue Feb 5, 2020 · 5 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@ruibaby
Copy link
Member

ruibaby commented Feb 5, 2020

概述

支持设置语言包。

动机

健壮性。

详细解释

主要有三个地方需要支持。

  1. halo-admin
  2. API
  3. 主题

对于主题可能需要注意的有:

  1. 动态设置语言包,就是切换主题的时候加载对应主题目录下的语言包。
  2. 主题语言包位置 i18n/zh-Hans.properties i18n/en.properties等。

另外:如果能实现在线更新语言包更好。

@ruibaby ruibaby added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 5, 2020
@ruibaby ruibaby mentioned this issue Jul 11, 2020
@JohnNiang JohnNiang added this to the 1.4.0 milestone Jul 11, 2020
@JohnNiang JohnNiang removed this from the 1.4.0 milestone Dec 7, 2020
@LIlGG LIlGG self-assigned this Dec 9, 2021
@chivehao
Copy link
Contributor

这个功能,是不是应该给文章加个语言标识,一篇文章可以关联多种语言的同一文章,比如用户用中文写了一篇文章,然后为了方便让母语为其它语言(比如英语或者日语)的朋友看,又翻译成了对应语言的文章,但都是同一篇文章的不同语言版本。

最终期望达到的效果是,同一文章链接,中文朋友看的是中文,英文朋友看的是英文版本的,日语朋友看的是日语版本的。

@ruibaby
Copy link
Member Author

ruibaby commented Jun 14, 2022

这个功能,是不是应该给文章加个语言标识,一篇文章可以关联多种语言的同一文章,比如用户用中文写了一篇文章,然后为了方便让母语为其它语言(比如英语或者日语)的朋友看,又翻译成了对应语言的文章,但都是同一篇文章的不同语言版本。

最终期望达到的效果是,同一文章链接,中文朋友看的是中文,英文朋友看的是英文版本的,日语朋友看的是日语版本的。

是的,欢迎到 halo-dev/rfcs#6 交流一下想法。

@liu-jin-zhou
Copy link

这个功能,是不是应该给文章加个语言标识,一篇文章可以关联多种语言的同一文章,比如用户用中文写了一篇文章,然后为了方便让母语为其它语言(比如英语或者日语)的朋友看,又翻译成了对应语言的文章,但都是同一篇文章的不同语言版本。

最终期望达到的效果是,同一文章链接,中文朋友看的是中文,英文朋友看的是英文版本的,日语朋友看的是日语版本的。

请问有没有实现了呢

@ruibaby
Copy link
Member Author

ruibaby commented Nov 17, 2024

/close

See halo-dev/rfcs#6

Copy link

f2c-ci-robot bot commented Nov 17, 2024

@ruibaby: Closing this issue.

In response to this:

/close

See halo-dev/rfcs#6

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@f2c-ci-robot f2c-ci-robot bot closed this as completed Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants