Skip to content

🎨 Palette: Add accessibility attributes to language switcher - #68

Open
divineforge wants to merge 4 commits into
mainfrom
palette/a11y-language-switcher-12501349990781146388
Open

🎨 Palette: Add accessibility attributes to language switcher#68
divineforge wants to merge 4 commits into
mainfrom
palette/a11y-language-switcher-12501349990781146388

Conversation

@divineforge

Copy link
Copy Markdown
Collaborator

💡 What: Added hreflang and lang attributes 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

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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying gzen-learn with  Cloudflare Pages  Cloudflare Pages

Latest commit: 74c3a9b
Status:🚫  Build failed.

View logs

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying gzen with  Cloudflare Pages  Cloudflare Pages

Latest commit: 74c3a9b
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying gzen-invest with  Cloudflare Pages  Cloudflare Pages

Latest commit: 74c3a9b
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying gzen-ki with  Cloudflare Pages  Cloudflare Pages

Latest commit: 74c3a9b
Status:🚫  Build failed.

View logs

google-labs-jules Bot and others added 3 commits July 20, 2026 23:26
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant