From efeadd49b9d78e29778647835bd2a454ddce73a5 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 28 Jul 2026 11:00:19 +0200 Subject: feat: humanize temporal-day display names (OF + EF) Temporal days with no proper name showed a slug-derived string ('triduum fri', 'ordinary 11 tue', 'advent-dec-17'). Add calendar.HumanizeSlug, used by both celebrationName fallbacks (cli + calfeed), turning slugs into proper liturgical names: Good Friday, Ash Wednesday, 'Tuesday of the 11th Week in Ordinary Time', '11th Sunday in Ordinary Time', 'December 17', 'The Most Holy Trinity', and the EF forms ('4th Week after Pentecost', 'Passion Week', 'Ember Wednesday of September'). Adds TestHumanizeSlug. --- internal/cli/liturgy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cli/liturgy.go') diff --git a/internal/cli/liturgy.go b/internal/cli/liturgy.go index 5b6036e..aa3f97e 100644 --- a/internal/cli/liturgy.go +++ b/internal/cli/liturgy.go @@ -164,7 +164,7 @@ func celebrationName(cfg config.Config, c calendar.Celebration) string { if c.Slug == "" { return "(feria)" } - return strings.ReplaceAll(strings.TrimPrefix(c.Slug, "ef-"), "-", " ") + return calendar.HumanizeSlug(c.Slug) } func rankLabel(r calendar.Rank) string { -- cgit v1.3