diff --git a/exampleSite/config/_default/languages.zh-CN.toml b/exampleSite/config/_default/languages.zh-Hans.toml similarity index 96% rename from exampleSite/config/_default/languages.zh-CN.toml rename to exampleSite/config/_default/languages.zh-Hans.toml index 9f3f80263..6300dc503 100644 --- a/exampleSite/config/_default/languages.zh-CN.toml +++ b/exampleSite/config/_default/languages.zh-Hans.toml @@ -1,4 +1,4 @@ -languageCode = "zh-CN" +languageCode = "zh-Hans" languageName = "简体中文" languageDirection = "ltr" weight = 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.md b/exampleSite/content/docs/configuration/index.md index 537f86f1c..7e1d81791 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -48,37 +48,39 @@ 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 | -| --------------------------------------- | ------- | -| :gb: **English (default)** | `en` | -| :egypt: Arabic | `ar` | -| :bangladesh: Bengali | `bn` | -| :bulgaria: Bulgarian | `bg` | -| :cn: Chinese - Simplified (China) | `zh-cn` | -| :taiwan: Chinese - Traditional (Taiwan) | `zh-tw` | -| :flag-cz: Czech | `cs` | -| :netherlands: Dutch | `nl` | -| :finland: Finnish | `fi` | -| :fr: French | `fr` | -| :de: German | `de` | -| :israel: Hebrew | `he` | -| :hungary: Hungarian | `hu` | -| :indonesia: Indonesian | `id` | -| :it: Italian | `it` | -| :jp: Japanese | `ja` | -| :kr: Korean | `ko` | -| :poland: Polish | `pl` | -| :brazil: Portuguese (Brazil) | `pt-br` | -| :portugal: Portuguese (Portugal) | `pt-pt` | -| :romania: Romanian | `ro` | -| :ru: Russian | `ru` | -| :slovakia: Slovak | `sk` | -| :es: Spanish (Spain) | `es` | -| :sweden: Swedish | `sv` | -| :flag-lk: Tamil | `ta` | -| :tr: Turkish | `tr` | -| :ukraine: Ukrainian | `uk` | -| :vietnam: Vietnamese | `vi` | +| Language | Code | +| --------------------------------------- | ------------ | +| :gb: **English (default)** | `en` | +| :egypt: Arabic | `ar` | +| :bangladesh: Bengali | `bn` | +| :bulgaria: Bulgarian | `bg` | +| :cn: Chinese - Simplified | `zh-Hans` | +| :cn: Chinese - Simplified (China) | `zh-Hans-CN` | +| :taiwan: Chinese - Traditional | `zh-Hant` | +| :taiwan: Chinese - Traditional (Taiwan) | `zh-Hant-TW` | +| :flag-cz: Czech | `cs` | +| :netherlands: Dutch | `nl` | +| :finland: Finnish | `fi` | +| :fr: French | `fr` | +| :de: German | `de` | +| :israel: Hebrew | `he` | +| :hungary: Hungarian | `hu` | +| :indonesia: Indonesian | `id` | +| :it: Italian | `it` | +| :jp: Japanese | `ja` | +| :kr: Korean | `ko` | +| :poland: Polish | `pl` | +| :brazil: Portuguese (Brazil) | `pt-br` | +| :portugal: Portuguese (Portugal) | `pt-pt` | +| :romania: Romanian | `ro` | +| :ru: Russian | `ru` | +| :slovakia: Slovak | `sk` | +| :es: Spanish (Spain) | `es` | +| :sweden: Swedish | `sv` | +| :flag-lk: Tamil | `ta` | +| :tr: Turkish | `tr` | +| :ukraine: Ukrainian | `uk` | +| :vietnam: 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 100% rename from exampleSite/content/docs/configuration/index.zh-cn.md rename to exampleSite/content/docs/configuration/index.zh-Hans.md 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-CN.yaml similarity index 100% rename from i18n/zh-CN.yaml rename to i18n/zh-Hans-CN.yaml diff --git a/i18n/zh-Hans.yaml b/i18n/zh-Hans.yaml new file mode 100644 index 000000000..e7072c6c7 --- /dev/null +++ b/i18n/zh-Hans.yaml @@ -0,0 +1,59 @@ +article: + anchor_label: "锚点" + date: "{{ .Date }}" + date_updated: "更新于 {{ .Date }}" + draft: "草稿" + edit_title: "编辑内容" + reading_time: + other: "{{ .Count }} 分钟" + reading_time_title: "预计阅读" + table_of_contents: "目录" + word_count: + one: "{{ .Count }} 字" + other: "{{ .Count }} 字" + +author: + byline_title: "作者" + +code: + copy: "复制" + copied: "已复制" + +error: + 404_title: "找不到网页 :confused:" + 404_error: "404 错误" + 404_description: "您请求的页面似乎不存在。" + +footer: + dark_appearance: "切换为深色模式" + light_appearance: "切换为浅色模式" + powered_by: "由 {{ .Hugo }} & {{ .Congo }} 强力驱动" + +list: + externalurl_title: "链接到外部网站" + no_articles: "这里还没有任何文章可以列出。" + +nav: + scroll_to_top_title: "回到顶部" + skip_to_main: "跳到主要内容" + +search: + open_button_title: "搜索 (/)" + close_button_title: "关闭 (Esc)" + input_placeholder: "搜索" + +sharing: + email: "通过电子邮件发送" + facebook: "分享到 Facebook" + linkedin: "分享到 LinkedIn" + mastodon: "嘟嘟到 Mastodon" + pinterest: "钉到 Pinterest" + reddit: "提交到 Reddit" + twitter: "分享到 Twitter" + telegram: "分享到 Telegram" + line: "分享到 LINE" + weibo: "分享到 微博" + # x-twitter: "Post on X" + +shortcode: + recent_articles: "最近的文章" diff --git a/i18n/zh-TW.yaml b/i18n/zh-Hant-TW.yaml similarity index 100% rename from i18n/zh-TW.yaml rename to i18n/zh-Hant-TW.yaml diff --git a/i18n/zh-Hant.yaml b/i18n/zh-Hant.yaml new file mode 100644 index 000000000..49f326abb --- /dev/null +++ b/i18n/zh-Hant.yaml @@ -0,0 +1,60 @@ +article: + anchor_label: "定位點" + date: "{{ .Date }}" + date_updated: "上次編輯: {{ .Date }}" + draft: "草稿" + edit_title: "編輯內容" + reading_time: + one: "{{ .Count }} 分鐘" + other: "{{ .Count }} 分鐘" + reading_time_title: "預計閱讀時間" + table_of_contents: "目錄" + word_count: + one: "{{ .Count }} 字" + other: "{{ .Count }} 字" + +author: + byline_title: "作者" + +code: + copy: "複製" + copied: "已複製" + +error: + 404_title: "找不到網頁 :confused:" + 404_error: "404 錯誤" + 404_description: "您在尋找的頁面似乎不存在。" + +footer: + dark_appearance: "切換為深色模式" + light_appearance: "切換為淺色模式" + powered_by: "以 {{ .Hugo }} & {{ .Congo }} 製作" + +list: + externalurl_title: "外部網站連結" + no_articles: "這裡還沒有任何文章。" + +nav: + scroll_to_top_title: "捲動到頁頂" + skip_to_main: "快轉到主要內容" + +search: + open_button_title: "搜尋 (/)" + close_button_title: "關閉 (Esc)" + input_placeholder: "搜尋" + +sharing: + email: "以電子郵件發送" + facebook: "分享到 Facebook" + linkedin: "分享到 LinkedIn" + mastodon: "嘟到 Mastodon" + pinterest: "釘到 Pinterest" + reddit: "發送到 Reddit" + twitter: "推到 Twitter" + telegram: "分享到 Telegram" + line: "分享到 LINE" + weibo: "分享到 微博" + # x-twitter: "Post on X" + +shortcode: + recent_articles: "最近的文章"