Skip to content

fix: localize language switcher aria-labels and BreadcrumbList breadcrumbs for all non-English committee report pages#529

Merged
pethers merged 2 commits intonews/committee-reports-2026-02-25-b50f2fcee1cde105from
copilot/sub-pr-520-again
Feb 25, 2026
Merged

fix: localize language switcher aria-labels and BreadcrumbList breadcrumbs for all non-English committee report pages#529
pethers merged 2 commits intonews/committee-reports-2026-02-25-b50f2fcee1cde105from
copilot/sub-pr-520-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

All 13 non-English committee report pages had hardcoded English values for the language switcher aria-label and JSON-LD BreadcrumbList item names, breaking accessibility and structured data semantics for non-English locales.

Changes

  • Language switcher aria-label — updated to language-specific values from LANG_SWITCHER_ARIA_LABELS (constants.ts) for all 13 pages (ar, da, de, es, fi, fr, he, ja, ko, nl, no, sv, zh):
<!-- before (all non-English pages) -->
<nav class="language-switcher" role="navigation" aria-label="Language versions">

<!-- after (example: Arabic) -->
<nav class="language-switcher" role="navigation" aria-label="إصدارات اللغة">
  • BreadcrumbList names — updated "Home" and "News" to localized equivalents from BREADCRUMB_TRANSLATIONS (constants.ts) for all non-English pages:
// before
{ "position": 1, "name": "Home", ... },
{ "position": 2, "name": "News", ... }

// after (example: German)
{ "position": 1, "name": "Startseite", ... },
{ "position": 2, "name": "Nachrichten", ... }

Dutch home stays as "Home" — matching the nl entry in BREADCRUMB_TRANSLATIONS. English page is unchanged.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…for all 13 non-English pages

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update automated generation of committee reports analysis fix: localize language switcher aria-labels and BreadcrumbList breadcrumbs for all non-English committee report pages Feb 25, 2026
@pethers pethers marked this pull request as ready for review February 25, 2026 09:46
@pethers pethers merged commit 02497c9 into news/committee-reports-2026-02-25-b50f2fcee1cde105 Feb 25, 2026
@pethers pethers deleted the copilot/sub-pr-520-again branch February 25, 2026 09:46
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.

2 participants