Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--exampleSite/config.toml3
-rw-r--r--i18n/zh-hant.yaml28
-rw-r--r--i18n/zh.yaml28
4 files changed, 61 insertions, 1 deletions
diff --git a/README.md b/README.md
index 52899df..664eeb1 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ Features in this ported version:
- Dark mode.
- MathJax support. (Needs to be enabled manually, see [the project wiki](https://github.com/amazingrise/hugo-theme-diary/wiki) for details.)
- Google Custom Search Engine support.
+- Internationalization(i18n) support, with English, French and Chinese(Simplified and Traditional).
## Quick Start
@@ -95,6 +96,8 @@ Please visit [the project wiki](https://github.com/amazingrise/hugo-theme-diary/
[Enable Reading Time](https://github.com/AmazingRise/hugo-theme-diary/wiki/Reading-Time)
+[Internationalization](https://github.com/AmazingRise/hugo-theme-diary/wiki/Internationalization)
+
## Comparison
For details about the difference lies in the new version, please click [here.](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comparison)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e4f8f3d..c10a525 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,4 +1,5 @@
baseURL = "http://example.org/"
+DefaultContentLanguage = "en" // Theme's display language, supports: en, fr, zh, zh-hant
languageCode = "en-us"
title = "A Hugo Site"
copyright = "This is a customized copyright."
@@ -45,4 +46,4 @@ weight = 1
[[menu.main]]
url = "/index.xml"
name = "RSS Feed"
-weight = 4
+weight = 4 \ No newline at end of file
diff --git a/i18n/zh-hant.yaml b/i18n/zh-hant.yaml
new file mode 100644
index 0000000..44bb93f
--- /dev/null
+++ b/i18n/zh-hant.yaml
@@ -0,0 +1,28 @@
+- id: last_mod_on
+ translation: 上次修改於 {{ .Format "2006-01-02" }}
+- id: format_date
+ translation: '{{ .Format "2006-01-02" }}'
+- id: format_date_tosec
+ translation: '{{ .Format "2006-01-02 15:04" }}'
+- id: next_link
+ translation: 下回
+- id: prev_link
+ translation: 上回
+- id: no_newer_posts
+ translation: 已經到底啦。
+- id: no_older_posts
+ translation: 這是最舊的文章了。
+- id: comments_disabled
+ translation: 此篇文章的評論功能已經停用。
+- id: livere_comments_activate_js
+ translation: 請開啓 JavaScript 以便使用 Livere 評論服務。
+- id: hugo_theme
+ translation: Hugo Theme
+- id: ported_from
+ translation: 移植自
+- id: by
+ translation: by
+- id: draft
+ translation: 草稿
+- id: toc_title
+ translation: 目錄
diff --git a/i18n/zh.yaml b/i18n/zh.yaml
new file mode 100644
index 0000000..afc9a7a
--- /dev/null
+++ b/i18n/zh.yaml
@@ -0,0 +1,28 @@
+- id: last_mod_on
+ translation: 最后修改于 {{ .Format "2006-01-02" }}
+- id: format_date
+ translation: '{{ .Format "2006-01-02" }}'
+- id: format_date_tosec
+ translation: '{{ .Format "2006-01-02 15:04" }}'
+- id: next_link
+ translation: '下回'
+- id: prev_link
+ translation: '上回'
+- id: no_newer_posts
+ translation: 已经到头啦。
+- id: no_older_posts
+ translation: 这是最旧的文章了。
+- id: comments_disabled
+ translation: 此篇文章的评论功能已经停用。
+- id: livere_comments_activate_js
+ translation: 请开启 JavaScript 以便使用 Livere 评论服务。
+- id: hugo_theme
+ translation: Hugo Theme
+- id: ported_from
+ translation: 移植自
+- id: by
+ translation: by
+- id: draft
+ translation: 草稿
+- id: toc_title
+ translation: 目录