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

可否考慮加入繁體中文的介面 #3346

Closed
den13501 opened this issue Feb 20, 2023 · 14 comments · Fixed by #3506 or #3672
Closed

可否考慮加入繁體中文的介面 #3346

den13501 opened this issue Feb 20, 2023 · 14 comments · Fixed by #3506 or #3672
Assignees
Labels
area/console Issues or PRs related to the Halo Console kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@den13501
Copy link
Contributor

den13501 commented Feb 20, 2023

你当前使用的版本

2.2.1

描述一下此特性

無意間接觸到halo,對於這套整合前後端,省去hugo, hexo等需要命令才可發布文章的高學習成本的一體式解決方案實在太喜歡了,希望官方可以加入繁中的支持,謝謝🙏

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Feb 20, 2023

感谢支持,我们会考虑在 2.4.0 首先支持 Console 端的 i18n。

/area console
/milestone 2.4.x
/kind feature

@f2c-ci-robot f2c-ci-robot bot added this to the 2.4.x milestone Feb 20, 2023
@f2c-ci-robot f2c-ci-robot bot added area/console Issues or PRs related to the Halo Console kind/feature Categorizes issue or PR as related to a new feature. labels Feb 20, 2023
@ruibaby
Copy link
Member

ruibaby commented Feb 20, 2023

届时我们可能会先提供英语和简体中文的语言包,繁体中文可能就会靠社区来支持啦。

有兴趣可以来参与贡献。

@den13501
Copy link
Contributor Author

届时我们可能会先提供英语和简体中文的语言包,繁体中文可能就会靠社区来支持啦。

有兴趣可以来参与贡献。

沒問題,我很樂意參與繁體語系的支援,感謝!

@ruibaby
Copy link
Member

ruibaby commented Feb 20, 2023

/reopen

这个特性还没实现,可以先保留这个 issue

@f2c-ci-robot f2c-ci-robot bot reopened this Feb 20, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 20, 2023

@ruibaby: Reopened this issue.

In response to this:

/reopen

这个特性还没实现,可以先保留这个 issues

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.

@ruibaby ruibaby added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Mar 6, 2023
@ruibaby ruibaby self-assigned this Mar 13, 2023
f2c-ci-robot bot pushed a commit that referenced this issue Mar 23, 2023
#### What type of PR is this?

/kind feature

#### What this PR does / why we need it:

为 Console 端添加多语言的支持,并默认提供简体中文和英文的语言包。

todolist:

- [x] 完善 Console 的文字语言包翻译。
- [ ] ~~为后端提供的部分数据支持翻译,比如系统设置的表单定义。(实现方式待讨论,这个 PR 先不支持)~~
- [x] 提供语言设置。

#### Which issue(s) this PR fixes:

Fixes #3346 

#### Special notes for your reviewer:

测试方式:

1. 检查各个页面的文字显示是否正常。
2. 测试中英文环境中是否使用了对应的语言包。

#### Does this PR introduce a user-facing change?

```release-note
Console 端支持多语言界面
```
@ruibaby
Copy link
Member

ruibaby commented Mar 23, 2023

我们已经在 #3506 中添加了 Console 的多语言支持,有兴趣可以来贡献一下繁体中文的语言包。

/reopen

@f2c-ci-robot f2c-ci-robot bot reopened this Mar 23, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 23, 2023

@ruibaby: Reopened this issue.

In response to this:

我们已经在 #3506 中添加了 Console 的多语言支持,有兴趣可以来贡献一下繁体中文的语言包。

/reopen

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.

@den13501
Copy link
Contributor Author

感謝大大們的努力,我會儘快提出PR

@ruibaby ruibaby modified the milestones: 2.4.x, Backlog Mar 29, 2023
@den13501
Copy link
Contributor Author

den13501 commented Apr 2, 2023

已PR,請再看看是否有錯誤要修正,感謝
#3672

@JohnNiang
Copy link
Member

/milestone 2.5.x

@f2c-ci-robot f2c-ci-robot bot modified the milestones: Backlog, 2.5.x Apr 3, 2023
f2c-ci-robot bot pushed a commit that referenced this issue Apr 3, 2023
#### What type of PR is this?

/kind feature
/area core

#### What this PR does / why we need it:

Add zhTW locale.

#### Which issue(s) this PR fixes:

Fixes #3346

#### Does this PR introduce a user-facing change?

```release-note
提供繁体中文(TW)翻译
```
@ruibaby ruibaby modified the milestones: 2.5.x, 2.5.0 Apr 18, 2023
@WSMI052
Copy link

WSMI052 commented Nov 11, 2024

想搭個版碰運氣問問看
在後台確實已經支援繁體中文(部分)
想問下在主題方面如果需要顯示繁體中文,必須依照該主題的代碼決定對嗎?

謝謝 @den13501 @JohnNiang

@JohnNiang
Copy link
Member

Hi @WSMI052 , please refer to halo-dev/docs#418.

@WSMI052
Copy link

WSMI052 commented Nov 13, 2024

Hi @WSMI052 , please refer to halo-dev/docs#418.

@JohnNiang 感謝您的回答 🙇‍♂️
目前理解是建立i18n資料夾與properties來辦到主題多語言

目前發現 ISO 639 alpha-2 or alpha-3 language code 不適用於「繁體中文」、「簡體中文」同時存在的情況....
不知道有沒有更好的解決辦法..

原本打算default.properties可以放簡體
zh.properties 可以放繁體

結果,發現
無論瀏覽器設定簡體或者繁體統一都吃到 zh.properties .....

@JohnNiang
Copy link
Member

Hi @WSMI052 , 请参考 halo-dev/theme-earth#214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/console Issues or PRs related to the Halo Console kind/feature Categorizes issue or PR as related to a new feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants