diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-16 12:54:14 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-16 12:54:14 +0200 |
| commit | 71f577b171f6208fff7de47c7dad087955aa5fae (patch) | |
| tree | a5bebf376a8f98e2e2f8312ae7a0c6bce39c4a3a /i18n/en.yaml | |
| parent | 631505e0c403c9e2e4e5687ee121f0d1bd371b8c (diff) | |
| download | danixxyz-fix/taxonomy-layouts.tar.gz danixxyz-fix/taxonomy-layouts.zip | |
feat: i18n singular/plural post count on taxonomy listfix/taxonomy-layouts
Replace hardcoded "Posts: N" with i18n "postCount" key using Hugo's
pluralization support (one/other forms). Renders "1 post" or "N posts"
in English, "1 articolo" or "N articoli" in Italian.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'i18n/en.yaml')
| -rw-r--r-- | i18n/en.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i18n/en.yaml b/i18n/en.yaml index 2a90f2b..64b0a26 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -26,6 +26,9 @@ tag: "Tag" tags: "Tags" relatedPosts: "Related articles" noRelated: "No related articles." +postCount: + one: "1 post" + other: "{{ . }} posts" # Article types life: "Life" |
