From 4184d0775b33505f26701dabec76106d95af8a18 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 8 Jun 2026 23:23:46 +0200 Subject: [PATCH] fix(journeyinterlude): use i18n aria-label instead of hardcoded German Replaces aria-label="Kuratorennotiz" with m.journey_interlude_aria_label() so screen readers get the correct label in all three supported locales. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/geschichte/JourneyInterlude.svelte | 4 +++- frontend/src/lib/geschichte/JourneyInterlude.svelte.spec.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/geschichte/JourneyInterlude.svelte b/frontend/src/lib/geschichte/JourneyInterlude.svelte index 1bd8822c..1a517fd5 100644 --- a/frontend/src/lib/geschichte/JourneyInterlude.svelte +++ b/frontend/src/lib/geschichte/JourneyInterlude.svelte @@ -1,4 +1,6 @@

{ await expect.element(page.getByText('Eine kurze Pause auf der Reise.')).toBeVisible(); }); - it('has aria-label Kuratorennotiz', async () => { + it('has aria-label from i18n (journey_interlude_aria_label)', async () => { render(JourneyInterlude, { props: { note: 'Notiz' } }); - const el = document.querySelector('[aria-label="Kuratorennotiz"]'); + const el = document.querySelector(`[aria-label="${m.journey_interlude_aria_label()}"]`); expect(el).not.toBeNull(); });