Repository navigation
Fix Dashboard HTML language under invariant culture - #19331
Merged
Adam Ratzman (adamint) merged 1 commit intoAug 13, 2026
Merged
Adam Ratzman (adamint) merged 1 commit into
Adam Ratzman (adamint) merged 1 commit into
Conversation
Adam Ratzman (adamint)
requested a review
from James Newton-King (JamesNK)
as a code owner
August 13, 2026 03:50
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19331Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19331" |
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes invariant-culture Dashboard pages rendering an empty HTML language attribute.
Changes:
- Maps invariant culture to English while preserving named UI cultures.
- Uses the helper for the Dashboard’s
<html lang>attribute. - Adds focused regression tests.
Show a summary per file
| File | Description |
|---|---|
src/Aspire.Dashboard/Components/App.razor |
Uses the culture-aware HTML language helper. |
src/Aspire.Dashboard/Utils/GlobalizationHelpers.cs |
Adds invariant-culture fallback to en. |
tests/Aspire.Dashboard.Tests/GlobalizationHelpersTests.cs |
Tests invariant and named cultures. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
Co-authored-by: Copilot <[email protected]> Copilot-Session: 20258179-a52e-4196-b70c-d294cf37f1f8
Adam Ratzman (adamint)
force-pushed
the
adamint/fix-dashboard-html-lang
branch
from
August 13, 2026 03:57
4666887 to
b3e08e5
Compare
James Newton-King (JamesNK)
approved these changes
Aug 13, 2026
James Newton-King (JamesNK)
left a comment
Member
There was a problem hiding this comment.
Reviewed the invariant-culture HTML language fix and its regression coverage. No issues found.
Closed
Contributor
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
1 task done
This was referenced Aug 22, 2026
Closed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Dashboard accessibility outerloop tests rendered
<html lang="">when the process used invariant culture. Axe then reportedhtml-has-langacross every scanned page, dialog, theme, and viewport.This change maps invariant culture to
lang="en", matching the Dashboard's English base resources, while preserving the name of every non-invariant UI culture.The separate CLI E2E failure tracked by the same issue is also unblocked: after
@playwright/[email protected]was seeded, the package downloads anonymously from the internal npm feed.Test proof
CI-equivalent Dashboard accessibility coverage used the repository's bundled Chromium headless shell:
Full non-outerloop Dashboard suite:
Build:
Internal feed verification:
Fixes #18657
Checklist
<remarks />and<code />elements on your triple slash comments?