Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Move zh-CN to zh-Hans and zh-TW to zh-Hant #865

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
527140f
🚚 Move `zh-CN` to `zh-Hans` and `zh-TW` to `zh-Hant`
jpanther Apr 30, 2024
db61958
📌 Bump jsdom from 23.0.1 to 24.0.0
dependabot[bot] Apr 30, 2024
75d0497
📌 Bump @fortawesome/fontawesome-free from 6.5.1 to 6.5.2
dependabot[bot] Apr 30, 2024
c0dca40
✨ Add support for sharing articles on Threads
jpanther May 1, 2024
8c271dc
🔀 Merge pull request #867 from jpanther/dependabot/npm_and_yarn/jsdom…
jpanther May 1, 2024
fd7caf2
🔀 Merge pull request #868 from jpanther/dependabot/npm_and_yarn/forta…
jpanther May 1, 2024
1d84ed6
📝 Sync users lists
jpanther May 1, 2024
7ff80aa
Merge branch 'dev' of https://github.com/jpanther/congo into dev
jpanther May 1, 2024
05e5e8b
🐛 Fix animated GIFs are static when `enableImageWebp` is set
jpanther May 1, 2024
5fa5bcc
🔧 Ignore `picture.html` in Prettier
jpanther May 1, 2024
7917094
🎨 Update picture warning message
jpanther May 1, 2024
bc416af
🐛 Fix next article pagination link animation is inverted
jpanther May 3, 2024
efd8ba2
Added i18n for Norwegian Bokmål.
torbbang May 5, 2024
9833880
Add jneidel.com as user
jneidel May 7, 2024
6cbc0cc
🔀 Merge pull request #878 from jneidel/patch-1
jpanther May 12, 2024
0f09b7d
📌 Bump mermaid from 10.9.0 to 10.9.1
dependabot[bot] May 14, 2024
01b5f58
📦 Update packaged Mermaid
dependabot[bot] May 14, 2024
426fc19
📌 Bump chart.js from 4.4.2 to 4.4.3
dependabot[bot] May 19, 2024
c46da90
📦 Update packaged ChartJS
dependabot[bot] May 19, 2024
24be2a5
🎨 Add breadcrumb to schema data
HolgerHuo May 22, 2024
cbd0c6a
Add clementfouque.com site
clement-fouque May 24, 2024
919a83a
📌 Bump prettier-plugin-tailwindcss from 0.5.14 to 0.6.5
dependabot[bot] Jun 17, 2024
7175024
fix: fix url
Jh123x Jun 18, 2024
824001c
📌 Bump rimraf from 5.0.5 to 6.0.1
dependabot[bot] Jul 11, 2024
6a0c7dc
📌 Bump jsdom from 24.0.0 to 24.1.1
dependabot[bot] Jul 21, 2024
d248cf3
🔀 Merge pull request #880 from jpanther/dependabot/npm_and_yarn/merma…
jpanther Aug 29, 2024
1e371ae
🔀 Merge pull request #881 from jpanther/dependabot/npm_and_yarn/chart…
jpanther Aug 29, 2024
7126d39
🔀 Merge pull request #899 from jpanther/dependabot/npm_and_yarn/prett…
jpanther Aug 29, 2024
96c1d6a
🔀 Merge pull request #908 from jpanther/dependabot/npm_and_yarn/rimra…
jpanther Aug 29, 2024
ffb6e86
🔀 Merge pull request #914 from jpanther/dependabot/npm_and_yarn/jsdom…
jpanther Aug 29, 2024
a2b9cae
📌 Bump @fortawesome/fontawesome-free from 6.5.2 to 6.6.0
dependabot[bot] Aug 29, 2024
a974706
📌 Bump prettier from 3.2.5 to 3.3.3
dependabot[bot] Aug 29, 2024
239edfc
📌 Bump jsdom from 24.1.1 to 25.0.0
dependabot[bot] Aug 29, 2024
779f5db
🔀 Merge pull request #922 from jpanther/dependabot/npm_and_yarn/forta…
jpanther Aug 29, 2024
fe41784
🔀 Merge pull request #923 from jpanther/dependabot/npm_and_yarn/prett…
jpanther Aug 29, 2024
e911a3c
🔀 Merge pull request #924 from jpanther/dependabot/npm_and_yarn/jsdom…
jpanther Aug 29, 2024
7a13c03
📌 Bump katex from 0.16.10 to 0.16.11
dependabot[bot] Aug 29, 2024
9580863
📦 Update packaged KaTeX
dependabot[bot] Aug 29, 2024
fff6ba2
🔀 Merge pull request #887 from clement-fouque/dev
jpanther Aug 29, 2024
d667185
🔀 Merge pull request #925 from jpanther/dependabot/npm_and_yarn/katex…
jpanther Aug 29, 2024
e48c05c
📌 Bump mermaid from 10.9.1 to 11.0.2
dependabot[bot] Aug 29, 2024
3edabfa
📦 Update packaged Mermaid
dependabot[bot] Aug 29, 2024
b4e54cb
🔀 Merge pull request #926 from jpanther/dependabot/npm_and_yarn/merma…
jpanther Aug 29, 2024
f23c068
📌 Bump chart.js from 4.4.3 to 4.4.4
dependabot[bot] Aug 29, 2024
e617aee
📌 Bump prettier-plugin-tailwindcss from 0.6.5 to 0.6.6
dependabot[bot] Aug 29, 2024
80dfd41
📌 Bump tailwindcss from 3.4.3 to 3.4.10
dependabot[bot] Aug 29, 2024
6bad455
📦 Update packaged ChartJS
dependabot[bot] Aug 29, 2024
21ffc1a
💄 Rebuild CSS
dependabot[bot] Aug 29, 2024
657c12a
🔀 Merge pull request #885 from HolgerHuo/add-breadcrumb-to-schema
jpanther Aug 29, 2024
dc3f725
🔀 Merge pull request #929 from jpanther/dependabot/npm_and_yarn/prett…
jpanther Aug 29, 2024
1a22cda
🔀 Merge pull request #928 from jpanther/dependabot/npm_and_yarn/chart…
jpanther Aug 29, 2024
6e36f81
🔀 Merge pull request #930 from jpanther/dependabot/npm_and_yarn/tailw…
jpanther Aug 29, 2024
0c642e3
📌 Bump @tailwindcss/typography from 0.5.13 to 0.5.15
dependabot[bot] Aug 29, 2024
3c00ab1
💄 Rebuild CSS
dependabot[bot] Aug 29, 2024
e9117d6
🔀 Merge pull request #901 from Jh123x/fix/892/fix-google-unsafe-url
jpanther Aug 29, 2024
8c7964a
🔀 Merge pull request #927 from jpanther/dependabot/npm_and_yarn/tailw…
jpanther Aug 29, 2024
b8a8f96
✨ Add `profile` shortcode
jpanther Aug 29, 2024
249c6fa
Merge branch 'dev' of https://github.com/jpanther/congo into dev
jpanther Aug 29, 2024
ee08526
📝 Update changelog
jpanther Aug 29, 2024
fc513b6
🔀 Merge pull request #872 from torbbang/dev
jpanther Aug 29, 2024
9ecba76
🔥 Remove outdated users links
jpanther Aug 29, 2024
52bdddf
📝 Update changelog and docs
jpanther Aug 29, 2024
760e710
🚚 Move `zh-CN` to `zh-Hans` and `zh-TW` to `zh-Hant`
jpanther Apr 30, 2024
6390392
Merge branch 'chinese-i18n' of https://github.com/jpanther/congo into…
jpanther Aug 29, 2024
8e1ff06
📝 Update docs
jpanther Aug 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
languageCode = "zh-CN"
languageCode = "zh-Hans"
languageName = "简体中文"
languageDirection = "ltr"
weight = 2
Expand Down
64 changes: 33 additions & 31 deletions exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
File renamed without changes.
59 changes: 59 additions & 0 deletions i18n/zh-Hans.yaml
Original file line number Diff line number Diff line change
@@ -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: "最近的文章"
File renamed without changes.
60 changes: 60 additions & 0 deletions i18n/zh-Hant.yaml
Original file line number Diff line number Diff line change
@@ -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: "最近的文章"