From be1ca8b4cbe01894e6401f219292eb8e91f1ac6d Mon Sep 17 00:00:00 2001 From: "Ilhom (MBP M5 Pro)" Date: Fri, 30 Oct 2026 09:27:19 +0700 Subject: [PATCH] fix(a11y): start the language toggle label with its visible text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit axe-core 4.14 drops parentheticals before matching label-content-name-mismatch, so the "(EN)" suffix added in #111 did not count. Leading with the visible code ("EN – Ganti bahasa ke English") satisfies WCAG 2.5.3 Label in Name. Refs #109 Co-Authored-By: Claude Opus 5.5 --- src/lib/i18n/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/i18n/core.ts b/src/lib/i18n/core.ts index 6285727..f5c2513 100644 --- a/src/lib/i18n/core.ts +++ b/src/lib/i18n/core.ts @@ -83,7 +83,7 @@ export const id = { landingDemo: "Coba Demo", landingSkip: "Langsung ke konten", landingThemeLabel: "Ganti tema", - landingLanguageLabel: "Ganti bahasa ke English (EN)", + landingLanguageLabel: "EN – Ganti bahasa ke English", landingLicense: "Lisensi MIT", landingSecurity: "Keamanan & privasi", landingNewTab: "(tab baru)", @@ -579,7 +579,7 @@ export const en = { landingDemo: "Try the demo", landingSkip: "Skip to content", landingThemeLabel: "Change theme", - landingLanguageLabel: "Switch language to Bahasa Indonesia (ID)", + landingLanguageLabel: "ID – Switch language to Bahasa Indonesia", landingLicense: "MIT license", landingSecurity: "Security & privacy", landingNewTab: "(new tab)",