aboutsummaryrefslogtreecommitdiff
path: root/internal/i18n/i18n.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-03 23:34:22 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-03 23:34:22 +0200
commitda1818a73de736dffd1580137352c32bea81be8c (patch)
tree3f17a87077189fe92641b60fbd124c9287c2dfe5 /internal/i18n/i18n.go
parentd45d0b4e4534253d782cc6312d7edda43cca196d (diff)
downloadlectio-da1818a73de736dffd1580137352c32bea81be8c.tar.gz
lectio-da1818a73de736dffd1580137352c32bea81be8c.zip
i18n: rank and colour vocabulary tables
Diffstat (limited to 'internal/i18n/i18n.go')
-rw-r--r--internal/i18n/i18n.go17
1 files changed, 15 insertions, 2 deletions
diff --git a/internal/i18n/i18n.go b/internal/i18n/i18n.go
index fece4a8..3928da8 100644
--- a/internal/i18n/i18n.go
+++ b/internal/i18n/i18n.go
@@ -15,14 +15,27 @@ type UI struct {
// version code (wuj, vul, grb, drb).
Version map[string]string
- // PartLabel names each modern-lectionary section's heading label word,
- // keyed by liturgy.Section.PartID (pierwsze_czytanie, psalm,
+ // PartLabel names each lectionary section's heading label word, keyed by
+ // liturgy.Section.PartID -- the modern IDs (pierwsze_czytanie, psalm,
// drugie_czytanie, aklamacja, ewangelia). The pl entries are the exact
// prefixes niedziela.pl's scraped headings carry, used by
// render.LocalizeHeading to recognise and swap the label word while
// keeping the citation untouched.
PartLabel map[string]string
+ // Rank names each liturgical rank, keyed by the string form of
+ // calendar.Rank. Two vocabularies share the map: the Ordinary Form's
+ // ferial/optional/memorial/feast/solemnity and the 1962 form's
+ // class-1..class-4/commemoration. Rendered by the CLI's day header and
+ // by the dlectio app's day banner and calendar rows.
+ Rank map[string]string
+
+ // Colour names each normalized liturgical colour, keyed by the string form
+ // of calendar.Colour (white, red, green, violet, rose, black). Rendered by
+ // the CLI's day header only -- the dlectio app draws a coloured swatch
+ // instead and deliberately shows no colour word.
+ Colour map[string]string
+
// TUI keybar and status messages. NoReadingsFor and ErrorPrefix each
// carry their own single trailing space (the TUI concatenates a date or
// error string directly onto them, no separator added at the call site).