From 4c776396115c8120c3e1cb8fda993449fcdcd326 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 23 Jul 2026 21:51:40 +0200 Subject: i18n: ui_language config (default en) for UI chrome across cli/tui/web; version labels localised --- internal/web/server_test.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'internal/web/server_test.go') diff --git a/internal/web/server_test.go b/internal/web/server_test.go index 47c38e9..25d21f4 100644 --- a/internal/web/server_test.go +++ b/internal/web/server_test.go @@ -38,7 +38,10 @@ func TestServer(t *testing.T) { t.Fatalf("status = %d, want 200", rec.Code) } body := rec.Body.String() - if !strings.Contains(body, "Ewangelia") { + // config.Default() -> UILanguage "en", so the gospel heading's part + // label is localised to "Gospel" (render.LocalizeHeading); the + // citation stays exactly as scraped. + if !strings.Contains(body, "Gospel") { t.Errorf("body missing reading heading: %q", body) } if !strings.Contains(body, "htmx") { @@ -59,7 +62,8 @@ func TestServer(t *testing.T) { if strings.Contains(body, "