Skip to content

Commit

Permalink
🌐 Move to zh-Hans and zh-Hant language codes
Browse files Browse the repository at this point in the history
Closes: #793
  • Loading branch information
jpanther committed Aug 29, 2024
1 parent 8b4cb9a commit f0f9ec2
Show file tree
Hide file tree
Showing 36 changed files with 107 additions and 100 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### 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))
- 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))
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/config/_default/languages.de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 4

title = "Congo"
copyright = "© 2023 Congo contributors"
copyright = "© 2024 Congo contributors"

[params]
dateFormat = "2. January 2006"
Expand All @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors"
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
]
4 changes: 2 additions & 2 deletions exampleSite/config/_default/languages.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 1

title = "Congo"
copyright = "© 2023 Congo contributors"
copyright = "© 2024 Congo contributors"

[params]
dateFormat = "2 January 2006"
Expand All @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors"
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
]
4 changes: 2 additions & 2 deletions exampleSite/config/_default/languages.es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"
copyright = "© 2024 Congo contributors"

[params]
dateFormat = "2 January 2006"
Expand All @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors"
{ facebook = "https://facebook.com/" },
{ linkedin = "https://linkedin.com/" },
{ youtube = "https://youtube.com/" },
]
]
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"
copyright = "© 2024 Congo contributors"

[params]
dateFormat = "2006年1月2日"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
languageCode = "zh-CN"
languageCode = "zh-Hans"
languageName = "简体中文"
languageDirection = "ltr"
weight = 2

title = "Congo"
copyright = "© 2023 Congo contributors"
copyright = "© 2024 Congo contributors"

[params]
dateFormat = "2006年1月2日"
Expand Down
File renamed without changes.
File renamed without changes.
64 changes: 32 additions & 32 deletions exampleSite/content/docs/configuration/index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,38 @@ Congoは完全な多言語ウェブサイト用に最適化されており、テ

Congoは現在、以下の言語に対応しています:

| Language | Code |
| ------------------------------ | ------- |
| **English (default)** | `en` |
| Arabic | `ar` |
| Bengali | `bn` |
| Bulgarian | `bg` |
| Chinese - Simplified (China) | `zh-cn` |
| Chinese - Traditional (Taiwan) | `zh-tw` |
| Czech | `cs` |
| Dutch | `nl` |
| Finnish | `fi` |
| French | `fr` |
| German | `de` |
| Hebrew | `he` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Norwegian - Bokmål | `nb` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Slovak | `sk` |
| Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |
| Language | Code |
| --------------------- | --------- |
| **English (default)** | `en` |
| Arabic | `ar` |
| Bengali | `bn` |
| Bulgarian | `bg` |
| Chinese - Simplified | `zh-Hans` |
| Chinese - Traditional | `zh-Hant` |
| Czech | `cs` |
| Dutch | `nl` |
| Finnish | `fi` |
| French | `fr` |
| German | `de` |
| Hebrew | `he` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Norwegian - Bokmål | `nb` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Slovak | `sk` |
| Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |

翻訳文字列を含むカスタムファイルを `i18n/[code].yaml` に作成することでデフォルトの翻訳をオーバーライドできます。このメソッドを使って新しい言語を追加することもできます。新しい翻訳をコミュニティと共有したい場合、[Pull Request](https://github.com/jpanther/congo/pulls)を作ってください。

Expand Down
64 changes: 32 additions & 32 deletions exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,38 @@ Congo is optimised for full multilingual websites and theme assets are translate

The theme currently supports the following languages out of the box:

| Language | Code |
| ------------------------------ | ------- |
| **English (default)** | `en` |
| Arabic | `ar` |
| Bengali | `bn` |
| Bulgarian | `bg` |
| Chinese - Simplified (China) | `zh-cn` |
| Chinese - Traditional (Taiwan) | `zh-tw` |
| Czech | `cs` |
| Dutch | `nl` |
| Finnish | `fi` |
| French | `fr` |
| German | `de` |
| Hebrew | `he` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Norwegian - Bokmål | `nb` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Slovak | `sk` |
| Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |
| Language | Code |
| --------------------- | --------- |
| **English (default)** | `en` |
| Arabic | `ar` |
| Bengali | `bn` |
| Bulgarian | `bg` |
| Chinese - Simplified | `zh-Hans` |
| Chinese - Traditional | `zh-Hant` |
| Czech | `cs` |
| Dutch | `nl` |
| Finnish | `fi` |
| French | `fr` |
| German | `de` |
| Hebrew | `he` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Norwegian - Bokmål | `nb` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Slovak | `sk` |
| Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |

The default translations can be overridden by creating a custom file in `i18n/[code].yaml` that contains the translation strings. You can also use this method to add new languages. If you'd like to share a new translation with the community, please [open a pull request](https://github.com/jpanther/congo/pulls).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,38 @@ Congo 针对完整的多语言网站进行了优化,并且主题assets中已

该主题目前支持以下语言:

| 语言 | 代码 |
| ----------------------------- | ------- |
| :gb: **英语(默认)** | `en` |
| :egypt: 阿拉伯语 | `ar` |
| :bangladesh: 孟加拉语 | `bn` |
| :bulgaria: 保加利亚语 | `bg` |
| :cn: 中文 - 简体(中国) | `zh-cn` |
| :taiwan: 中文 - 繁体(台湾) | `zh-tw` |
| :flag-cz: 捷克语 | `cs` |
| :netherlands: 荷兰语 | `nl` |
| :finland: 芬兰语 | `fi` |
| :fr: 法语 | `fr` |
| :de: 德语 | `de` |
| :israel: 希伯来语 | `he` |
| :hungary: 匈牙利语 | `hu` |
| :indonesia: 印尼语 | `id` |
| :it: 意大利语 | `it` |
| :jp: 日语 | `ja` |
| :poland: 波兰语 | `pl` |
| :brazil: 葡萄牙语(巴西) | `pt-br` |
| :portugal: 葡萄牙语(葡萄牙) | `pt-pt` |
| :romania: 罗马尼亚语 | `ro` |
| :ru: 俄语 | `ru` |
| :slovakia: 斯洛伐克语 | `sk` |
| :es: 西班牙语(西班牙) | `es` |
| :tr: 土耳其语 | `tr` |
| :ukraine: 乌克兰语 | `uk` |
| 语言 | 代码 |
| --------------------- | --------- |
| **English (default)** | `en` |
| Arabic | `ar` |
| Bengali | `bn` |
| Bulgarian | `bg` |
| Chinese - Simplified | `zh-Hans` |
| Chinese - Traditional | `zh-Hant` |
| Czech | `cs` |
| Dutch | `nl` |
| Finnish | `fi` |
| French | `fr` |
| German | `de` |
| Hebrew | `he` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Norwegian - Bokmål | `nb` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Slovak | `sk` |
| Spanish (Spain) | `es` |
| Swedish | `sv` |
| Tamil | `ta` |
| Turkish | `tr` |
| Ukrainian | `uk` |
| Vietnamese | `vi` |

默认翻译可以通过在 `i18n/[code].yaml` 中创建自定义文件来覆盖,其中包含翻译字符串。您还可以使用此方法添加新语言。如果您希望与社区分享新的翻译,请[Pull Request](https://github.com/jpanther/congo/pulls)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f0f9ec2

Please sign in to comment.