From e4b30ad9447e6117686a73b7b66a627d258a510d Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Fri, 23 Oct 2026 22:34:09 +0200 Subject: [PATCH] fix(i18n): keep root links in the active locale and fix switcher a11y AppNav, AppLogo and AppBottomNav used NuxtLink to "/", which resolves to the English root under prefix_except_default; they now use NuxtLinkLocale and drop the hardcoded aria-current. Bottom-nav labels go through $t as well. The switcher's accessible name now contains the visible locale code, aria-haspopup is gone in favour of a plain disclosure with aria-controls, and Escape returns focus to the trigger. --- app/components/AppBottomNav.vue | 11 +++++------ app/components/AppLanguageSwitcher.vue | 17 +++++++++++++---- app/components/AppLogo.vue | 4 ++-- app/components/AppNav.vue | 5 ++--- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/app/components/AppBottomNav.vue b/app/components/AppBottomNav.vue index f0f174c..bfbba1f 100644 --- a/app/components/AppBottomNav.vue +++ b/app/components/AppBottomNav.vue @@ -4,27 +4,26 @@ class="fixed bottom-0 left-0 w-full z-50 flex md:hidden bg-surface-container-low/90 backdrop-blur-xl shadow-[0_-1px_12px_rgba(0,0,0,0.3)]" >
- + {{ $t('nav.overview') }} +
diff --git a/app/components/AppLanguageSwitcher.vue b/app/components/AppLanguageSwitcher.vue index 1de35ac..4ebd906 100644 --- a/app/components/AppLanguageSwitcher.vue +++ b/app/components/AppLanguageSwitcher.vue @@ -1,8 +1,13 @@