From e793baa0d2d04c26e465f377fa661ec62539141c Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Tue, 6 Feb 2024 22:36:03 +0800 Subject: [PATCH 1/2] fix: add chinese language fix --- exampleSite/config/_default/languages.zh-CN.toml | 2 +- exampleSite/content/{_index.zh-cn.md => _index.zh-han.md} | 0 i18n/{zh-CN.yaml => zh-Han.yaml} | 0 i18n/{zh-TW.yaml => zh-Hant.yaml} | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename exampleSite/content/{_index.zh-cn.md => _index.zh-han.md} (100%) rename i18n/{zh-CN.yaml => zh-Han.yaml} (100%) rename i18n/{zh-TW.yaml => zh-Hant.yaml} (100%) diff --git a/exampleSite/config/_default/languages.zh-CN.toml b/exampleSite/config/_default/languages.zh-CN.toml index 31cba1cf..d3ac63cf 100644 --- a/exampleSite/config/_default/languages.zh-CN.toml +++ b/exampleSite/config/_default/languages.zh-CN.toml @@ -1,4 +1,4 @@ -languageCode = "zh-CN" +languageCode = "zh-Han" languageName = "简体中文" languageDirection = "ltr" weight = 2 diff --git a/exampleSite/content/_index.zh-cn.md b/exampleSite/content/_index.zh-han.md similarity index 100% rename from exampleSite/content/_index.zh-cn.md rename to exampleSite/content/_index.zh-han.md diff --git a/i18n/zh-CN.yaml b/i18n/zh-Han.yaml similarity index 100% rename from i18n/zh-CN.yaml rename to i18n/zh-Han.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 From 8ead3c1e24c5de678ec9ede65d83ad3b89225bce Mon Sep 17 00:00:00 2001 From: "junhua.wen" Date: Thu, 8 Feb 2024 11:18:38 +0800 Subject: [PATCH 2/2] feat: rename zh-cn to zh-hans and zh-tw to zh-hant --- .../_default/{languages.zh-CN.toml => languages.zh-Hans.toml} | 0 .../config/_default/{menus.zh-CN.toml => menus.zh-Hans.toml} | 0 exampleSite/content/{_index.zh-han.md => _index.zh-hans.md} | 0 .../content/docs/{_index.zh-cn.md => _index.zh-hans.md} | 0 .../{index.zh-cn.md => index.zh-hans.md} | 0 exampleSite/content/docs/configuration/index.ja.md | 4 ++-- exampleSite/content/docs/configuration/index.md | 4 ++-- .../docs/configuration/{index.zh-cn.md => index.zh-hans.md} | 4 ++-- .../content-examples/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/front-matter/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/getting-started/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/homepage-layout/{index.zh-cn.md => index.zh-hans.md} | 0 .../hosting-deployment/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/installation/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/partials/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/shortcodes/{index.zh-cn.md => index.zh-hans.md} | 0 .../docs/version-2/{_index.zh-cn.md => _index.zh-hans.md} | 0 .../version-2/upgrade/{index.zh-cn.md => index.zh-hans.md} | 0 .../content/samples/{_index.zh-cn.md => _index.zh-hans.md} | 0 .../samples/charts/{index.zh-cn.md => index.zh-hans.md} | 0 .../diagrams-flowcharts/{index.zh-cn.md => index.zh-hans.md} | 0 .../samples/emoji/{index.zh-cn.md => index.zh-hans.md} | 0 .../samples/external/{index.zh-cn.md => index.zh-hans.md} | 0 .../samples/icons/{index.zh-cn.md => index.zh-hans.md} | 0 .../samples/markdown/{index.zh-cn.md => index.zh-hans.md} | 0 .../{index.zh-cn.md => index.zh-hans.md} | 0 .../placeholder-text/{index.zh-cn.md => index.zh-hans.md} | 0 .../samples/rich-content/{index.zh-cn.md => index.zh-hans.md} | 0 .../content/tags/{_index.zh-CN.md => _index.zh-hans.md} | 0 .../tags/advanced/{_index.zh-CN.md => _index.zh-hans.md} | 0 .../content/users/{index.zh-cn.md => index.zh-hans.md} | 0 i18n/{zh-Han.yaml => zh-Hans.yaml} | 0 32 files changed, 6 insertions(+), 6 deletions(-) rename exampleSite/config/_default/{languages.zh-CN.toml => languages.zh-Hans.toml} (100%) rename exampleSite/config/_default/{menus.zh-CN.toml => menus.zh-Hans.toml} (100%) rename exampleSite/content/{_index.zh-han.md => _index.zh-hans.md} (100%) rename exampleSite/content/docs/{_index.zh-cn.md => _index.zh-hans.md} (100%) rename exampleSite/content/docs/advanced-customisation/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/configuration/{index.zh-cn.md => index.zh-hans.md} (99%) rename exampleSite/content/docs/content-examples/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/front-matter/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/getting-started/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/homepage-layout/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/hosting-deployment/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/installation/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/partials/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/shortcodes/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/docs/version-2/{_index.zh-cn.md => _index.zh-hans.md} (100%) rename exampleSite/content/docs/version-2/upgrade/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/{_index.zh-cn.md => _index.zh-hans.md} (100%) rename exampleSite/content/samples/charts/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/diagrams-flowcharts/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/emoji/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/external/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/icons/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/markdown/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/mathematical-notation/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/placeholder-text/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/samples/rich-content/{index.zh-cn.md => index.zh-hans.md} (100%) rename exampleSite/content/tags/{_index.zh-CN.md => _index.zh-hans.md} (100%) rename exampleSite/content/tags/advanced/{_index.zh-CN.md => _index.zh-hans.md} (100%) rename exampleSite/content/users/{index.zh-cn.md => index.zh-hans.md} (100%) rename i18n/{zh-Han.yaml => zh-Hans.yaml} (100%) diff --git a/exampleSite/config/_default/languages.zh-CN.toml b/exampleSite/config/_default/languages.zh-Hans.toml similarity index 100% rename from exampleSite/config/_default/languages.zh-CN.toml rename to exampleSite/config/_default/languages.zh-Hans.toml 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-han.md b/exampleSite/content/_index.zh-hans.md similarity index 100% rename from exampleSite/content/_index.zh-han.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 852bb723..aad701ab 100644 --- a/exampleSite/content/docs/configuration/index.ja.md +++ b/exampleSite/content/docs/configuration/index.ja.md @@ -54,8 +54,8 @@ Congoは現在、以下の言語に対応しています: | :egypt: Arabic | `ar` | | :bangladesh: Bengali | `bn` | | :bulgaria: Bulgarian | `bg` | -| :cn: Chinese - Simplified (China) | `zh-cn` | -| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | +| :cn: Chinese - Simplified (China) | `zh-hans` | +| :taiwan: Chinese - Traditional (Taiwan) | `zh-hant` | | :flag-cz: Czech | `cs` | | :netherlands: Dutch | `nl` | | :finland: Finnish | `fi` | diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 3ae0f434..467a850d 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -54,8 +54,8 @@ The theme currently supports the following languages out of the box: | :egypt: Arabic | `ar` | | :bangladesh: Bengali | `bn` | | :bulgaria: Bulgarian | `bg` | -| :cn: Chinese - Simplified (China) | `zh-cn` | -| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | +| :cn: Chinese - Simplified (China) | `zh-hans` | +| :taiwan: Chinese - Traditional (Taiwan) | `zh-hant` | | :flag-cz: Czech | `cs` | | :netherlands: Dutch | `nl` | | :finland: Finnish | `fi` | diff --git a/exampleSite/content/docs/configuration/index.zh-cn.md b/exampleSite/content/docs/configuration/index.zh-hans.md similarity index 99% rename from exampleSite/content/docs/configuration/index.zh-cn.md rename to exampleSite/content/docs/configuration/index.zh-hans.md index 76f8feb0..690e985b 100644 --- a/exampleSite/content/docs/configuration/index.zh-cn.md +++ b/exampleSite/content/docs/configuration/index.zh-hans.md @@ -54,8 +54,8 @@ Congo 针对完整的多语言网站进行了优化,并且主题assets中已 | :egypt: 阿拉伯语 | `ar` | | :bangladesh: 孟加拉语 | `bn` | | :bulgaria: 保加利亚语 | `bg` | -| :cn: 中文 - 简体(中国) | `zh-cn` | -| :taiwan: 中文 - 繁体(台湾) | `zh-tw` | +| :cn: 中文 - 简体(中国) | `zh-hans` | +| :taiwan: 中文 - 繁体(台湾) | `zh-hant` | | :flag-cz: 捷克语 | `cs` | | :netherlands: 荷兰语 | `nl` | | :finland: 芬兰语 | `fi` | 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/tags/_index.zh-CN.md b/exampleSite/content/tags/_index.zh-hans.md similarity index 100% rename from exampleSite/content/tags/_index.zh-CN.md rename to exampleSite/content/tags/_index.zh-hans.md diff --git a/exampleSite/content/tags/advanced/_index.zh-CN.md b/exampleSite/content/tags/advanced/_index.zh-hans.md similarity index 100% rename from exampleSite/content/tags/advanced/_index.zh-CN.md rename to exampleSite/content/tags/advanced/_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-Han.yaml b/i18n/zh-Hans.yaml similarity index 100% rename from i18n/zh-Han.yaml rename to i18n/zh-Hans.yaml