mirror of https://github.com/jpanther/congo.git
🌐 Pass .WordCount to i18n function
parent
65a7228bfc
commit
b4cbe9122b
|
@ -6,7 +6,9 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Reading time"
|
reading_time_title: "Reading time"
|
||||||
word_count_unit: "Words"
|
word_count:
|
||||||
|
one: "{{ .Count }} word"
|
||||||
|
other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Author"
|
byline_title: "Author"
|
||||||
|
|
|
@ -5,7 +5,9 @@ article:
|
||||||
reading_time:
|
reading_time:
|
||||||
other: "{{ .Count }} 分钟"
|
other: "{{ .Count }} 分钟"
|
||||||
reading_time_title: "预计阅读"
|
reading_time_title: "预计阅读"
|
||||||
word_count_unit: "字"
|
word_count:
|
||||||
|
one: "{{ .Count }} 字"
|
||||||
|
other: "{{ .Count }} 字"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "作者"
|
byline_title: "作者"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<span>
|
<span>
|
||||||
{{ .WordCount }} {{- i18n "article.word_count_unit" -}}
|
{{- i18n "article.word_count" .WordCount | emojify -}}
|
||||||
</span>
|
</span>
|
||||||
{{- /* Trim EOF */ -}}
|
{{- /* Trim EOF */ -}}
|
||||||
|
|
Loading…
Reference in New Issue