From 7e6236361f790ec76a1d282021e6507a8378f40f Mon Sep 17 00:00:00 2001 From: Dillon Date: Thu, 30 Jan 2020 13:17:42 +0800 Subject: [PATCH] feat(i18n): add switchTheme i18n --- i18n/en.toml | 9 +++++++-- i18n/zh.toml | 9 +++++++-- layouts/_default/summary.html | 2 +- layouts/partials/comments.html | 20 ++++++++++---------- layouts/partials/header.html | 7 ++++--- layouts/taxonomy/terms.html | 2 +- 6 files changed, 30 insertions(+), 19 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 72c6641..0653e75 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -24,10 +24,15 @@ other = "Categories" # === Taxonomy === # === Pagination === -[More] +[more] other = "More" # === Pagination === +# === partials/header.html === +[switchTheme] +other = "Switch Theme" +# === partials/header.html === + # === partials/comments.html === [valineLang] other = "en" @@ -75,7 +80,7 @@ other = "Back" [home] other = "Home" -[readmore] +[readMore] other = "Read More" [day] diff --git a/i18n/zh.toml b/i18n/zh.toml index 6eba84b..d60b617 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -24,10 +24,15 @@ other = "分类" # === Taxonomy === # === Pagination === -[More] +[more] other = "更多" # === Pagination === +# === partials/header.html === +[switchTheme] +other = "切换主题" +# === partials/header.html === + # === partials/comments.html === [valineLang] other = "zh-cn" @@ -78,7 +83,7 @@ other = "返回" [home] other = "主页" -[readmore] +[readMore] other = "阅读全文" [day] diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index f6d8086..6a39c15 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -47,7 +47,7 @@ {{ end }}
- {{ T "readmore" }} + {{ T "readMore" }} {{ with .Params.tags }}
+ \ No newline at end of file diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index cd58939..82111bd 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -29,7 +29,7 @@ {{ end }} {{ if gt (len $pages) 5 }} - {{ T "More" }} >> + {{ T "more" }} >> {{ end }}