diff options
| author | Track3 <pengliabc@live.cn> | 2018-12-14 15:17:48 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2018-12-14 15:17:48 +0800 |
| commit | 8711c169be1a680f83f35ed362c10776a5a6abc8 (patch) | |
| tree | 4780f209649d85b9984c95311821131765a79348 /i18n | |
| parent | c128b75243bc13e01385ee210cd28cceff549f09 (diff) | |
| download | hermit-8711c169be1a680f83f35ed362c10776a5a6abc8.tar.gz | |
Add i18n support for translation of strings
* Also add Simplified Chinese translations
* See #3
Diffstat (limited to 'i18n')
| -rw-r--r-- | i18n/en.toml | 24 | ||||
| -rw-r--r-- | i18n/zh-hans.toml | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..b3316f3 --- /dev/null +++ b/i18n/en.toml @@ -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" diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml new file mode 100644 index 0000000..605cd6b --- /dev/null +++ b/i18n/zh-hans.toml @@ -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 = "旧" |
