Render Lauds/Matins canticle titles bilingually
Deploy / deploy (push) Successful in 1m20s

English used the same id-derived Latin title (e.g. "Canticum Ezechiae")
for every language. Now English uses the authored name from
lauds-canticles.ts when one exists, falling back to the derived title
for names already conventional untranslated in English (Benedictus,
Magnificat, Nunc Dimittis) and Matins' scripture-ref-derived ids.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HWN869GrMFHqrer9fdCBbF
This commit is contained in:
2026-08-25 06:55:34 -04:00
parent d3ebd90967
commit 2d957ae111
2 changed files with 25 additions and 2 deletions
+9
View File
@@ -34,3 +34,12 @@ export function getCanticle(id: string): Canticle {
}
return canticle;
}
// Non-throwing lookup for the UI's canticle title — unlike getCanticle,
// callers here may pass ids (nunc-dimittis, benedictus, magnificat, or a
// Matins nocturn-3 scripture-ref-derived id) that this store never holds,
// since only the 7 Lauds weekday OT canticles have an authored English
// `name` distinct from their Latin id.
export function tryGetCanticleName(id: string): string | undefined {
return canticles.get(id)?.name;
}