diff --git a/i18n/de.toml b/i18n/de.toml index 11c8fdb..d54cf08 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -34,5 +34,13 @@ other = "Senden" [taxonomyPageList] 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" + [pageTitle] other = "{{ .Name }} Seite" \ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index 5adbe27..755e3b0 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -34,5 +34,13 @@ other = "Send" [taxonomyPageList] 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" + [pageTitle] -other = "{{ .Name }} page" \ No newline at end of file +other = "{{ .Name }} page" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2f2eed3..0c7b97b 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -43,8 +43,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 }}