summaryrefslogtreecommitdiff
path: root/internal/liturgy/section.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-03 23:50:26 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-03 23:50:26 +0200
commitf94ceaae997bce2168a5ab9e64a0c3afeafe0cf6 (patch)
treeff1c95b25754012742bbca55950d334ae76e8b23 /internal/liturgy/section.go
parent3d3ad4ba90c4d7dea4730ef129f8c9e065f05d6e (diff)
downloadlectio-f94ceaae997bce2168a5ab9e64a0c3afeafe0cf6.tar.gz
lectio-f94ceaae997bce2168a5ab9e64a0c3afeafe0cf6.zip
i18n: correct rank doc comments and pin the Polish wording
Diffstat (limited to 'internal/liturgy/section.go')
-rw-r--r--internal/liturgy/section.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/liturgy/section.go b/internal/liturgy/section.go
index 485a45f..baf2b9d 100644
--- a/internal/liturgy/section.go
+++ b/internal/liturgy/section.go
@@ -36,6 +36,10 @@ type DayInfo struct {
// Rank is the normalized liturgical rank of the observed celebration:
// the Ordinary Form's "ferial", "optional", "memorial", "feast",
// "solemnity", or the 1962 form's "class-1".."class-4",
- // "commemoration". Empty when the day carries no rank.
+ // "commemoration". The engine always supplies a rank: an unset or
+ // unrecognised rank on a sanctoral celebration defaults to "ferial"
+ // (calendar.buildCelebration), and every temporal-day constructor sets
+ // one explicitly. Consumers must not treat an empty Rank as meaning "no
+ // celebration".
Rank string
}