diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-03 23:50:26 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-03 23:50:26 +0200 |
| commit | f94ceaae997bce2168a5ab9e64a0c3afeafe0cf6 (patch) | |
| tree | ff1c95b25754012742bbca55950d334ae76e8b23 /internal/i18n/vocab_test.go | |
| parent | 3d3ad4ba90c4d7dea4730ef129f8c9e065f05d6e (diff) | |
| download | lectio-f94ceaae997bce2168a5ab9e64a0c3afeafe0cf6.tar.gz lectio-f94ceaae997bce2168a5ab9e64a0c3afeafe0cf6.zip | |
i18n: correct rank doc comments and pin the Polish wording
Diffstat (limited to 'internal/i18n/vocab_test.go')
| -rw-r--r-- | internal/i18n/vocab_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/internal/i18n/vocab_test.go b/internal/i18n/vocab_test.go index d25533a..bcd3464 100644 --- a/internal/i18n/vocab_test.go +++ b/internal/i18n/vocab_test.go @@ -43,3 +43,25 @@ func TestEnglishRankWordingUnchanged(t *testing.T) { } } } + +// The Polish rank words must be exactly this spelling, diacritics included: +// TestVocabularyCoversEveryConstant only checks non-emptiness, so a typo +// (e.g. "uroczystosc" for "uroczystość", or a wrong diacritic) would pass +// silently without this pin. Polish correctness is the whole point of this +// project. +func TestPolishRankWordingUnchanged(t *testing.T) { + want := map[string]string{ + "solemnity": "uroczystość", "feast": "święto", + "memorial": "wspomnienie obowiązkowe", "optional": "wspomnienie dowolne", + "ferial": "dzień powszedni", + "class-1": "I klasy", "class-2": "II klasy", + "class-3": "III klasy", "class-4": "IV klasy", + "commemoration": "komemoracja", + } + ui := Get("pl") + for k, v := range want { + if got := ui.Rank[k]; got != v { + t.Errorf("rank[%q] = %q, want %q", k, got, v) + } + } +} |
