diff options
author | vvveiii <cntrump@gmail.com> | 2020-01-19 09:48:53 +0300 |
---|---|---|
committer | vvveiii <cntrump@gmail.com> | 2020-01-19 09:48:53 +0300 |
commit | f01b711529832694bb4d4a2a4f0c046f3d4b75be (patch) | |
tree | 88f2343d25514cc473009688ca5c229baa55c1f8 | |
parent | bffc12e1851f235405a38d7ee21f482297b9e226 (diff) |
update i18n
-rw-r--r-- | i18n/en.toml | 8 | ||||
-rw-r--r-- | i18n/zh.toml | 8 | ||||
-rw-r--r-- | layouts/partials/navigation-items.html | 4 |
3 files changed, 16 insertions, 4 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 64353e4..a7db0f5 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -6,4 +6,10 @@ one = " • One minute to read" other = " • {{ .Count }} minutes to read" [more] -other = "more"
\ No newline at end of file +other = "more" + +[Categories] +other = "Categories" + +[Tags] +other = "Tags"
\ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml index 2f41387..2c124c4 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -6,4 +6,10 @@ one = " • 预计阅读时间 1 分钟" other = " • 预计阅读时间 {{ .Count }} 分钟" [more] -other = "全文"
\ No newline at end of file +other = "全文" + +[Categories] +other = "分类" + +[Tags] +other = "标签"
\ No newline at end of file diff --git a/layouts/partials/navigation-items.html b/layouts/partials/navigation-items.html index b45a439..929a517 100644 --- a/layouts/partials/navigation-items.html +++ b/layouts/partials/navigation-items.html @@ -2,10 +2,10 @@ {{- if or $nav.showCategories $nav.showTags $nav.custom -}} <div class="nav wrap"><nav class="nav"> {{- if $nav.showCategories -}} - <a class="nav item" href="{{- `/categories/` | relLangURL -}}">Categories</a> + <a class="nav item" href="{{- `/categories/` | relLangURL -}}">{{- T "Categories" -}}</a> {{- end -}} {{- if $nav.showTags -}} - <a class="nav item" href="{{- `/tags/` | relLangURL -}}">Tags</a> + <a class="nav item" href="{{- `/tags/` | relLangURL -}}">{{- T "Tags" -}}</a> {{- end -}} {{- range $nav.custom -}} {{- $url := .url | safeURL -}} |