From d0affe4e8362aa6132872799adf2387771d9e6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sun, 4 Oct 2026 17:18:49 +0300 Subject: [PATCH] chore(service): trim dead bibleVersion() entries, drop impossible shared bible fallback bibleVersion() is only ever indexed with serviceLang (en|cu), so the fr/el/la/zh/ar entries were unreachable; the shared fallback URL (/data/shared/bible/...) does not exist on disk. No behavior change. --- src/ui/service-view.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ui/service-view.ts b/src/ui/service-view.ts index 39279fc..fa521b5 100644 --- a/src/ui/service-view.ts +++ b/src/ui/service-view.ts @@ -935,15 +935,15 @@ export class ServiceView { } } + /** + * Bible translation used for scripture readings inside services. + * Only 'en' and 'cu' can occur here: `serviceLang` maps ru→cu, so RU + * users read the Slavonic text, matching the rest of the service body. + */ private bibleVersion(lang: string): string { const map: Record = { en: 'kjv', cu: 'elis', - fr: 'ls', - el: 'spt', - la: 'vulgate', - zh: 'cuv', - ar: 'svd', }; return map[lang] || 'kjv'; } @@ -964,7 +964,6 @@ export class ServiceView { let text = await tryFetch(this.serviceLang); if (!text && this.serviceLang !== 'cu') text = await tryFetch('cu'); - if (!text) text = await tryFetch('shared'); if (!text) return ''; const lines = text.split('\n');