mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
13 hours ago 0df36e86dab038569301fe01326901ce856bf3fb
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Saturday, November 21, 2026 09:12 +0100
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Saturday, November 21, 2026 09:12 +0100
commit0df36e86dab038569301fe01326901ce856bf3fb
tree 93efadbfde077dd823c3edd55bc9452f8035d96b tree | zip | gz
parent a4edb31d90790428fad1d3477c15c891b14c9d83 view | diff
fix(i18n): use the singular unit in the English reading time

"3 minute read" is a compound adjective, so the unit stays singular.
Add a fixture test for the singular and plural forms.

Closes #870

Signed-off-by: Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
1 files modified
4 files added
41 ■■■■■ changed files
i18n/en.toml 2 ●●●●● diff | view | raw | blame | history
tests/fixtures/reading-time/content/posts/long.md 5 ●●●●● diff | view | raw | blame | history
tests/fixtures/reading-time/content/posts/short.md 5 ●●●●● diff | view | raw | blame | history
tests/fixtures/reading-time/hugo.toml 6 ●●●●● diff | view | raw | blame | history
tests/fixtures/reading-time/reading-time.test.mjs 23 ●●●●● diff | view | raw | blame | history