🌐 Move to zh-Hans and zh-Hant language codes

Closes: #793
This commit is contained in:
James Panther
2024-08-29 12:30:46 +10:00
parent 8b4cb9aee3
commit f0f9ec268f
36 changed files with 107 additions and 100 deletions
+2
View File
@@ -18,6 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed ### Changed
- ⚠️ Simplified Chinese language code has changed from `zh-cn` to `zh-Hans`
- ⚠️ Traditional Chinese language code has changed from `zh-tw` to `zh-Hant`
- Scroll to top links now use JavaScript to determine when to display ([#806](https://github.com/jpanther/congo/pull/806)) - Scroll to top links now use JavaScript to determine when to display ([#806](https://github.com/jpanther/congo/pull/806))
- Upgrade to Tailwind v3.4.10 ([#930](https://github.com/jpanther/congo/pull/930)) - Upgrade to Tailwind v3.4.10 ([#930](https://github.com/jpanther/congo/pull/930))
- Upgrade to Typography v0.5.15 ([#864](https://github.com/jpanther/congo/pull/864), [#927](https://github.com/jpanther/congo/pull/927)) - Upgrade to Typography v0.5.15 ([#864](https://github.com/jpanther/congo/pull/864), [#927](https://github.com/jpanther/congo/pull/927))
@@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 4 weight = 4
title = "Congo" title = "Congo"
copyright = "© 2023 Congo contributors" copyright = "© 2024 Congo contributors"
[params] [params]
dateFormat = "2. January 2006" dateFormat = "2. January 2006"
@@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 1 weight = 1
title = "Congo" title = "Congo"
copyright = "© 2023 Congo contributors" copyright = "© 2024 Congo contributors"
[params] [params]
dateFormat = "2 January 2006" dateFormat = "2 January 2006"
@@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 2 weight = 2
title = "Congo" title = "Congo"
copyright = "© 2023 Congo contributors" copyright = "© 2024 Congo contributors"
[params] [params]
dateFormat = "2 January 2006" dateFormat = "2 January 2006"
@@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 2 weight = 2
title = "Congo" title = "Congo"
copyright = "© 2023 Congo contributors" copyright = "© 2024 Congo contributors"
[params] [params]
dateFormat = "2006年1月2日" dateFormat = "2006年1月2日"
@@ -1,10 +1,10 @@
languageCode = "zh-CN" languageCode = "zh-Hans"
languageName = "简体中文" languageName = "简体中文"
languageDirection = "ltr" languageDirection = "ltr"
weight = 2 weight = 2
title = "Congo" title = "Congo"
copyright = "© 2023 Congo contributors" copyright = "© 2024 Congo contributors"
[params] [params]
dateFormat = "2006年1月2日" dateFormat = "2006年1月2日"
@@ -49,13 +49,13 @@ Congoは完全な多言語ウェブサイト用に最適化されており、テ
Congoは現在、以下の言語に対応しています: Congoは現在、以下の言語に対応しています:
| Language | Code | | Language | Code |
| ------------------------------ | ------- | | --------------------- | --------- |
| **English (default)** | `en` | | **English (default)** | `en` |
| Arabic | `ar` | | Arabic | `ar` |
| Bengali | `bn` | | Bengali | `bn` |
| Bulgarian | `bg` | | Bulgarian | `bg` |
| Chinese - Simplified (China) | `zh-cn` | | Chinese - Simplified | `zh-Hans` |
| Chinese - Traditional (Taiwan) | `zh-tw` | | Chinese - Traditional | `zh-Hant` |
| Czech | `cs` | | Czech | `cs` |
| Dutch | `nl` | | Dutch | `nl` |
| Finnish | `fi` | | Finnish | `fi` |
@@ -49,13 +49,13 @@ Congo is optimised for full multilingual websites and theme assets are translate
The theme currently supports the following languages out of the box: The theme currently supports the following languages out of the box:
| Language | Code | | Language | Code |
| ------------------------------ | ------- | | --------------------- | --------- |
| **English (default)** | `en` | | **English (default)** | `en` |
| Arabic | `ar` | | Arabic | `ar` |
| Bengali | `bn` | | Bengali | `bn` |
| Bulgarian | `bg` | | Bulgarian | `bg` |
| Chinese - Simplified (China) | `zh-cn` | | Chinese - Simplified | `zh-Hans` |
| Chinese - Traditional (Taiwan) | `zh-tw` | | Chinese - Traditional | `zh-Hant` |
| Czech | `cs` | | Czech | `cs` |
| Dutch | `nl` | | Dutch | `nl` |
| Finnish | `fi` | | Finnish | `fi` |
@@ -49,32 +49,37 @@ Congo 针对完整的多语言网站进行了优化,并且主题assets中已
该主题目前支持以下语言: 该主题目前支持以下语言:
| 语言 | 代码 | | 语言 | 代码 |
| ----------------------------- | ------- | | --------------------- | --------- |
| :gb: **英语(默认)** | `en` | | **English (default)** | `en` |
| :egypt: 阿拉伯语 | `ar` | | Arabic | `ar` |
| :bangladesh: 孟加拉语 | `bn` | | Bengali | `bn` |
| :bulgaria: 保加利亚语 | `bg` | | Bulgarian | `bg` |
| :cn: 中文 - 简体(中国) | `zh-cn` | | Chinese - Simplified | `zh-Hans` |
| :taiwan: 中文 - 繁体(台湾) | `zh-tw` | | Chinese - Traditional | `zh-Hant` |
| :flag-cz: 捷克语 | `cs` | | Czech | `cs` |
| :netherlands: 荷兰语 | `nl` | | Dutch | `nl` |
| :finland: 芬兰语 | `fi` | | Finnish | `fi` |
| :fr: 法语 | `fr` | | French | `fr` |
| :de: 德语 | `de` | | German | `de` |
| :israel: 希伯来语 | `he` | | Hebrew | `he` |
| :hungary: 匈牙利语 | `hu` | | Hungarian | `hu` |
| :indonesia: 印尼语 | `id` | | Indonesian | `id` |
| :it: 意大利语 | `it` | | Italian | `it` |
| :jp: 日语 | `ja` | | Japanese | `ja` |
| :poland: 波兰语 | `pl` | | Korean | `ko` |
| :brazil: 葡萄牙语(巴西) | `pt-br` | | Norwegian - Bokmål | `nb` |
| :portugal: 葡萄牙语(葡萄牙) | `pt-pt` | | Polish | `pl` |
| :romania: 罗马尼亚语 | `ro` | | Portuguese (Brazil) | `pt-br` |
| :ru: 俄语 | `ru` | | Portuguese (Portugal) | `pt-pt` |
| :slovakia: 斯洛伐克语 | `sk` | | Romanian | `ro` |
| :es: 西班牙语(西班牙) | `es` | | Russian | `ru` |
| :tr: 土耳其语 | `tr` | | Slovak | `sk` |
| :ukraine: 乌克兰语 | `uk` | | Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |
默认翻译可以通过在 `i18n/[code].yaml` 中创建自定义文件来覆盖,其中包含翻译字符串。您还可以使用此方法添加新语言。如果您希望与社区分享新的翻译,请[Pull Request](https://github.com/jpanther/congo/pulls)。 默认翻译可以通过在 `i18n/[code].yaml` 中创建自定义文件来覆盖,其中包含翻译字符串。您还可以使用此方法添加新语言。如果您希望与社区分享新的翻译,请[Pull Request](https://github.com/jpanther/congo/pulls)。