diff --git a/i18n/de.toml b/i18n/de.toml index e44eb6e..2fed7d7 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -32,4 +32,12 @@ other = "Eine Email Adresse wird benötigt." other = "Senden" [taxonomyPageList] -other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”" \ No newline at end of file +other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”" + +[readingTime] +one = "Eine Minute" +other = "{{ .Count }} Minuten" + +[wordCount] +one = "Ein Wort" +other = "{{ .Count }} Wörter" diff --git a/i18n/en.toml b/i18n/en.toml index 73b1ac7..251fe00 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -32,4 +32,12 @@ other = "An email address is required." other = "Send" [taxonomyPageList] -other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”" \ No newline at end of file +other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”" + +[readingTime] +one = "One minute read" +other = "{{ .Count }} minutes read" + +[wordCount] +one = "One word" +other = "{{ .Count }} words" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cbb7e74..3fa354c 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,8 +41,8 @@ 3) A page front matter value is set `show_reading_time = true` */}} {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}} - - {{ .ReadingTime}} minutes read - - {{ .WordCount}} words + - {{ i18n "readingTime" .ReadingTime }} + - {{ i18n "wordCount" .WordCount }} {{ end }}