Add i18n support for translation of strings

* Also add Simplified Chinese translations
* See #3
This commit is contained in:
Track3 2018-12-14 15:17:48 +08:00
parent c128b75243
commit 8711c169be
5 changed files with 56 additions and 7 deletions

24
i18n/en.toml Normal file
View file

@ -0,0 +1,24 @@
# Translations for English
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# 404.html
#
[notFound]
other = "Oops, page not found…"
[home]
other = "Home"
[archives]
other = "Archives"
# posts/single.html
#
[wordCount]
other = "{{ .WordCount }} Words"
[newer]
other = "Newer"
[older]
other = "Older"

24
i18n/zh-hans.toml Normal file
View file

@ -0,0 +1,24 @@
# Translations for Simplified Chinese - 简体中文
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# 404.html
#
[notFound]
other = "糟糕,您要访问的页面不存在……"
[home]
other = "主页"
[archives]
other = "归档"
# posts/single.html
#
[wordCount]
other = "{{ .WordCount }} 字"
[newer]
other = "新"
[older]
other = "旧"