🎨 Palette: Add accessibility attributes to language switcher - #68
🎨 Palette: Add accessibility attributes to language switcher#68divineforge wants to merge 4 commits into
Conversation
Adds `hreflang` and `lang` attributes to the language switcher links in the translations component. This accessibility improvement ensures screen readers apply the correct pronunciation profiles when reading language options. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Replaced deprecated `languageCode` configurations with `languageCode = "en"` in `apps/gzen-learn/hugo.toml` and `apps/gzen-invest/hugo.toml` and fixed deprecated usages in `apps/gzen-ki/themes/blowfish` partials to resolve Hugo 0.162+ build failures. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com>
Replaced deprecated `languageCode` configurations with `locale = "en"`, replaced `languageName` configurations with `label`, replaced `.Site.Data` with `site.Data`, and updated `.Language.LanguageName` variables to `.Language.Label` across the codebase in `apps/gzen-learn`, `apps/gzen-invest`, `apps/gzen-ki`, and `apps/gzen` to resolve Hugo v0.162.1+ CI build failures. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com>
Replaced deprecated `languageCode` configurations with `locale = "en"`, replaced `languageName` configurations with `label`, replaced `.Site.Data` with `site.Data`, and updated `.Language.LanguageName` variables to `.Language.Label` across the codebase in `apps/gzen-learn`, `apps/gzen-invest`, `apps/gzen-ki`, and `apps/gzen` to resolve Hugo v0.162.1+ CI build failures. Co-authored-by: divineforge <1146195+divineforge@users.noreply.github.com>
💡 What: Added
hreflangandlangattributes to the language switcher links in the header translations component.🎯 Why: Without these attributes, screen readers may attempt to read the translated language names using the pronunciation rules of the current language, resulting in confusing audio output. Adding them ensures screen readers switch to the correct language profile.
📸 Before/After: Visuals are unchanged. The underlying HTML now includes
hreflang="{{ .Language.Lang }}" lang="{{ .Language.Lang }}".♿ Accessibility: Ensures correct pronunciation of language options by screen readers, improving the experience for visually impaired users.
PR created automatically by Jules for task 12501349990781146388 started by @divineforge