🌐 Add Traditional Chinese Translation

pull/262/head
Tomy Hsieh 2022-08-05 03:09:36 +08:00
parent d045d02547
commit 5a46805bd2
No known key found for this signature in database
GPG Key ID: 9E47A53D54F34479
2 changed files with 72 additions and 17 deletions

View File

@ -47,23 +47,24 @@ Congo is optimised for full multilingual websites and theme assets are translate
The theme currently supports the following languages by default: The theme currently supports the following languages by default:
| Language | Code | | Language | Code |
| -------------------------------- | ------- | | -------------------------------------- | ------- |
| :gb: English | `en` | | :gb: English | `en` |
| :bangladesh: Bengali | `bn` | | :bangladesh: Bengali | `bn` |
| :cn: Chinese | `zh` | | :cn: Simplified Chinese (China) | `zh-cn` |
| :finland: Finnish | `fi` | | :taiwan: Traditional Chinese (Taiwan) | `zh-tw` |
| :fr: French | `fr` | | :finland: Finnish | `fi` |
| :de: German | `de` | | :fr: French | `fr` |
| :israel: Hebrew | `he` | | :de: German | `de` |
| :hungary: Hungarian | `hu` | | :israel: Hebrew | `he` |
| :it: Italian | `it` | | :hungary: Hungarian | `hu` |
| :jp: Japanese | `ja` | | :it: Italian | `it` |
| :brazil: Portuguese (Brazil) | `pt-br` | | :jp: Japanese | `ja` |
| :portugal: Portuguese (Portugal) | `pt-pt` | | :brazil: Portuguese (Brazil) | `pt-br` |
| :romania: Romanian | `ro` | | :portugal: Portuguese (Portugal) | `pt-pt` |
| :es: Spanish (Spain) | `es` | | :romania: Romanian | `ro` |
| :tr: Turkish | `tr` | | :es: Spanish (Spain) | `es` |
| :tr: Turkish | `tr` |
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). 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).

54
i18n/zh-TW.yaml 100644
View File

@ -0,0 +1,54 @@
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"
pinterest: "釘到 Pinterest"
reddit: "發送到 Reddit"
twitter: "推到 Twitter"
shortcode:
recent_articles: "最近的文章"