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"