From 3e7bcaec78a63634989f28a2598633753b86fafd Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Mon, 30 Oct 2023 10:24:31 +0600 Subject: [PATCH] Fix reading time translation Signed-off-by: hossainemruz --- i18n/bn.toml | 3 +++ i18n/en.toml | 6 +++--- i18n/it.toml | 6 +++--- layouts/_default/single.html | 2 +- layouts/partials/cards/post.html | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/i18n/bn.toml b/i18n/bn.toml index 96b0546..eafd0ce 100644 --- a/i18n/bn.toml +++ b/i18n/bn.toml @@ -121,3 +121,6 @@ other = "দায় বিজ্ঞপ্তি" [search] other = "অনুসন্ধান করুন" + +[minute] +other = "মিনিট" diff --git a/i18n/en.toml b/i18n/en.toml index 0e229f7..dc18751 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -125,6 +125,6 @@ other = "Liability Notice" [search] other = "Search" -[minutes] -one = "1 minute" -other = "{{.Count}} minutes" +[minute] +one = "minute" +other = "minutes" diff --git a/i18n/it.toml b/i18n/it.toml index c995eb4..10edd5b 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -125,6 +125,6 @@ other = "Avviso di responsabilità" [search] other = "Ricerca" -[minutes] -one = "1 minuto" -other = "{{.Count}} minuti" +[minute] +one = "minuto" +other = "minuti" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6192952..482b252 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -39,7 +39,7 @@
Author Image
{{ partial "helpers/get-author-name.html" . }}
-

{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} minute{{ if (ne .ReadingTime 1) }}s{{ end }}{{ end }}

+

{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{i18n "minute" .ReadingTime }}{{ end }}

diff --git a/layouts/partials/cards/post.html b/layouts/partials/cards/post.html index 4f6e7dd..0653031 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -14,7 +14,7 @@