From 3932f9b589d2cb2a4748d0d62471049aee15ef7c Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 11 Jul 2026 14:16:02 -0300 Subject: [PATCH] Add og:locale meta, hreflang/lang on language toggles, labeled corner group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deferred items from PR #16 review: - og:locale + og:locale:alternate per locale (en_US/es_ES) - hreflang + lang attributes on all four EN/ES toggle anchors - role=group + localized aria-label on the corner controls container - Hide the mobile-menu language row from sm: up — the corner EN/ES pair already shows there, so the 640-767px band no longer offers two toggles Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01VhYGxeedwYvmSNJFBkxwMK --- src/components/CornerControls.astro | 8 +++++++- src/components/Nav.astro | 6 +++++- src/i18n/index.ts | 9 +++++++++ src/layouts/Base.astro | 2 ++ 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/components/CornerControls.astro b/src/components/CornerControls.astro index da54cb7..f2fb1ab 100644 --- a/src/components/CornerControls.astro +++ b/src/components/CornerControls.astro @@ -1,6 +1,6 @@ --- import ThemeToggle from './ThemeToggle.astro'; -import { getLocale } from '../i18n'; +import { getLocale, ui } from '../i18n'; const locale = getLocale(Astro.currentLocale); @@ -11,11 +11,15 @@ const langClass = (active: boolean) => ---