diff --git a/i18n/en.yaml b/i18n/en.yaml index d8de5fee..6cb5c3d5 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -6,7 +6,9 @@ article: one: "{{ .Count }} min" other: "{{ .Count }} mins" reading_time_title: "Reading time" - word_count_unit: "Words" + word_count: + one: "{{ .Count }} word" + other: "{{ .Count }} words" author: byline_title: "Author" diff --git a/i18n/zh.yaml b/i18n/zh.yaml index a539072d..ec93aa7e 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -5,7 +5,9 @@ article: reading_time: other: "{{ .Count }} 分钟" reading_time_title: "预计阅读" - word_count_unit: "字" + word_count: + one: "{{ .Count }} 字" + other: "{{ .Count }} 字" author: byline_title: "作者" diff --git a/layouts/partials/meta/word-count.html b/layouts/partials/meta/word-count.html index 6907581d..e68ec0d6 100644 --- a/layouts/partials/meta/word-count.html +++ b/layouts/partials/meta/word-count.html @@ -1,5 +1,5 @@ - {{ .WordCount }} {{- i18n "article.word_count_unit" -}} + {{- i18n "article.word_count" .WordCount | emojify -}} {{- /* Trim EOF */ -}} \ No newline at end of file