diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ce1cfaa3..0fc561616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/exampleSite/config/_default/languages.de.toml b/exampleSite/config/_default/languages.de.toml index dbe4dee86..ad8beb28c 100644 --- a/exampleSite/config/_default/languages.de.toml +++ b/exampleSite/config/_default/languages.de.toml @@ -4,7 +4,7 @@ languageDirection = "ltr" weight = 4 title = "Congo" -copyright = "© 2023 Congo contributors" +copyright = "© 2024 Congo contributors" [params] dateFormat = "2. January 2006" @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors" { facebook = "https://facebook.com/" }, { linkedin = "https://linkedin.com/" }, { youtube = "https://youtube.com/" }, - ] \ No newline at end of file + ] diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index b7bf147c1..4ea8a269e 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -4,7 +4,7 @@ languageDirection = "ltr" weight = 1 title = "Congo" -copyright = "© 2023 Congo contributors" +copyright = "© 2024 Congo contributors" [params] dateFormat = "2 January 2006" @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors" { facebook = "https://facebook.com/" }, { linkedin = "https://linkedin.com/" }, { youtube = "https://youtube.com/" }, - ] \ No newline at end of file + ] diff --git a/exampleSite/config/_default/languages.es.toml b/exampleSite/config/_default/languages.es.toml index 7fda1f506..822f4b274 100644 --- a/exampleSite/config/_default/languages.es.toml +++ b/exampleSite/config/_default/languages.es.toml @@ -4,7 +4,7 @@ languageDirection = "ltr" weight = 2 title = "Congo" -copyright = "© 2023 Congo contributors" +copyright = "© 2024 Congo contributors" [params] dateFormat = "2 January 2006" @@ -22,4 +22,4 @@ copyright = "© 2023 Congo contributors" { facebook = "https://facebook.com/" }, { linkedin = "https://linkedin.com/" }, { youtube = "https://youtube.com/" }, - ] \ No newline at end of file + ] diff --git a/exampleSite/config/_default/languages.ja.toml b/exampleSite/config/_default/languages.ja.toml index 87a48811d..4d17701c8 100644 --- a/exampleSite/config/_default/languages.ja.toml +++ b/exampleSite/config/_default/languages.ja.toml @@ -4,7 +4,7 @@ languageDirection = "ltr" weight = 2 title = "Congo" -copyright = "© 2023 Congo contributors" +copyright = "© 2024 Congo contributors" [params] dateFormat = "2006年1月2日" diff --git a/exampleSite/config/_default/languages.zh-CN.toml b/exampleSite/config/_default/languages.zh-Hans.toml similarity index 90% rename from exampleSite/config/_default/languages.zh-CN.toml rename to exampleSite/config/_default/languages.zh-Hans.toml index 9f3f80263..175936702 100644 --- a/exampleSite/config/_default/languages.zh-CN.toml +++ b/exampleSite/config/_default/languages.zh-Hans.toml @@ -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日" diff --git a/exampleSite/config/_default/menus.zh-CN.toml b/exampleSite/config/_default/menus.zh-Hans.toml similarity index 100% rename from exampleSite/config/_default/menus.zh-CN.toml rename to exampleSite/config/_default/menus.zh-Hans.toml diff --git a/exampleSite/content/_index.zh-cn.md b/exampleSite/content/_index.zh-Hans.md similarity index 100% rename from exampleSite/content/_index.zh-cn.md rename to exampleSite/content/_index.zh-Hans.md diff --git a/exampleSite/content/docs/_index.zh-cn.md b/exampleSite/content/docs/_index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/_index.zh-cn.md rename to exampleSite/content/docs/_index.zh-Hans.md diff --git a/exampleSite/content/docs/advanced-customisation/index.zh-cn.md b/exampleSite/content/docs/advanced-customisation/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/advanced-customisation/index.zh-cn.md rename to exampleSite/content/docs/advanced-customisation/index.zh-Hans.md diff --git a/exampleSite/content/docs/configuration/index.ja.md b/exampleSite/content/docs/configuration/index.ja.md index 730847f0a..98b85fc6b 100644 --- a/exampleSite/content/docs/configuration/index.ja.md +++ b/exampleSite/content/docs/configuration/index.ja.md @@ -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)を作ってください。 diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index dab66d88e..6bd58d4c2 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -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). diff --git a/exampleSite/content/docs/configuration/index.zh-cn.md b/exampleSite/content/docs/configuration/index.zh-Hans.md similarity index 91% rename from exampleSite/content/docs/configuration/index.zh-cn.md rename to exampleSite/content/docs/configuration/index.zh-Hans.md index 654212c22..005bd08a2 100644 --- a/exampleSite/content/docs/configuration/index.zh-cn.md +++ b/exampleSite/content/docs/configuration/index.zh-Hans.md @@ -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)。 diff --git a/exampleSite/content/docs/content-examples/index.zh-cn.md b/exampleSite/content/docs/content-examples/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/content-examples/index.zh-cn.md rename to exampleSite/content/docs/content-examples/index.zh-Hans.md diff --git a/exampleSite/content/docs/front-matter/index.zh-cn.md b/exampleSite/content/docs/front-matter/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/front-matter/index.zh-cn.md rename to exampleSite/content/docs/front-matter/index.zh-Hans.md diff --git a/exampleSite/content/docs/getting-started/index.zh-cn.md b/exampleSite/content/docs/getting-started/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/getting-started/index.zh-cn.md rename to exampleSite/content/docs/getting-started/index.zh-Hans.md diff --git a/exampleSite/content/docs/homepage-layout/index.zh-cn.md b/exampleSite/content/docs/homepage-layout/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/homepage-layout/index.zh-cn.md rename to exampleSite/content/docs/homepage-layout/index.zh-Hans.md diff --git a/exampleSite/content/docs/hosting-deployment/index.zh-cn.md b/exampleSite/content/docs/hosting-deployment/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/hosting-deployment/index.zh-cn.md rename to exampleSite/content/docs/hosting-deployment/index.zh-Hans.md diff --git a/exampleSite/content/docs/installation/index.zh-cn.md b/exampleSite/content/docs/installation/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/installation/index.zh-cn.md rename to exampleSite/content/docs/installation/index.zh-Hans.md diff --git a/exampleSite/content/docs/partials/index.zh-cn.md b/exampleSite/content/docs/partials/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/partials/index.zh-cn.md rename to exampleSite/content/docs/partials/index.zh-Hans.md diff --git a/exampleSite/content/docs/shortcodes/index.zh-cn.md b/exampleSite/content/docs/shortcodes/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/shortcodes/index.zh-cn.md rename to exampleSite/content/docs/shortcodes/index.zh-Hans.md diff --git a/exampleSite/content/docs/version-2/_index.zh-cn.md b/exampleSite/content/docs/version-2/_index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/version-2/_index.zh-cn.md rename to exampleSite/content/docs/version-2/_index.zh-Hans.md diff --git a/exampleSite/content/docs/version-2/upgrade/index.zh-cn.md b/exampleSite/content/docs/version-2/upgrade/index.zh-Hans.md similarity index 100% rename from exampleSite/content/docs/version-2/upgrade/index.zh-cn.md rename to exampleSite/content/docs/version-2/upgrade/index.zh-Hans.md diff --git a/exampleSite/content/samples/_index.zh-cn.md b/exampleSite/content/samples/_index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/_index.zh-cn.md rename to exampleSite/content/samples/_index.zh-Hans.md diff --git a/exampleSite/content/samples/charts/index.zh-cn.md b/exampleSite/content/samples/charts/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/charts/index.zh-cn.md rename to exampleSite/content/samples/charts/index.zh-Hans.md diff --git a/exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md b/exampleSite/content/samples/diagrams-flowcharts/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md rename to exampleSite/content/samples/diagrams-flowcharts/index.zh-Hans.md diff --git a/exampleSite/content/samples/emoji/index.zh-cn.md b/exampleSite/content/samples/emoji/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/emoji/index.zh-cn.md rename to exampleSite/content/samples/emoji/index.zh-Hans.md diff --git a/exampleSite/content/samples/external/index.zh-cn.md b/exampleSite/content/samples/external/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/external/index.zh-cn.md rename to exampleSite/content/samples/external/index.zh-Hans.md diff --git a/exampleSite/content/samples/icons/index.zh-cn.md b/exampleSite/content/samples/icons/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/icons/index.zh-cn.md rename to exampleSite/content/samples/icons/index.zh-Hans.md diff --git a/exampleSite/content/samples/markdown/index.zh-cn.md b/exampleSite/content/samples/markdown/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/markdown/index.zh-cn.md rename to exampleSite/content/samples/markdown/index.zh-Hans.md diff --git a/exampleSite/content/samples/mathematical-notation/index.zh-cn.md b/exampleSite/content/samples/mathematical-notation/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/mathematical-notation/index.zh-cn.md rename to exampleSite/content/samples/mathematical-notation/index.zh-Hans.md diff --git a/exampleSite/content/samples/placeholder-text/index.zh-cn.md b/exampleSite/content/samples/placeholder-text/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/placeholder-text/index.zh-cn.md rename to exampleSite/content/samples/placeholder-text/index.zh-Hans.md diff --git a/exampleSite/content/samples/rich-content/index.zh-cn.md b/exampleSite/content/samples/rich-content/index.zh-Hans.md similarity index 100% rename from exampleSite/content/samples/rich-content/index.zh-cn.md rename to exampleSite/content/samples/rich-content/index.zh-Hans.md diff --git a/exampleSite/content/users/index.zh-cn.md b/exampleSite/content/users/index.zh-Hans.md similarity index 100% rename from exampleSite/content/users/index.zh-cn.md rename to exampleSite/content/users/index.zh-Hans.md diff --git a/i18n/zh-CN.yaml b/i18n/zh-Hans.yaml similarity index 100% rename from i18n/zh-CN.yaml rename to i18n/zh-Hans.yaml diff --git a/i18n/zh-TW.yaml b/i18n/zh-Hant.yaml similarity index 100% rename from i18n/zh-TW.yaml rename to i18n/zh-Hant.yaml