Skip to content

Added change to application culture in config#119269

Merged
dariatiurina merged 4 commits into
dotnet:mainfrom
dariatiurina:37258-culture-change-error
Sep 2, 2025
Merged

Added change to application culture in config#119269
dariatiurina merged 4 commits into
dotnet:mainfrom
dariatiurina:37258-culture-change-error

Conversation

@dariatiurina
Copy link
Copy Markdown
Contributor

Fixes dotnet/aspnetcore#37258 by adding detected by runtime culture to the application config, which helps maintain consistency in culture settings throughout the application.

Changes:

  • Set config.applicationCulture to the detected culture value in the getIcuResourceName function.

@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 2, 2025
@jkotas jkotas added os-browser Browser variant of arch-wasm area-System.Globalization and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Sep 2, 2025
@dariatiurina dariatiurina marked this pull request as ready for review September 2, 2025 14:44
Copilot AI review requested due to automatic review settings September 2, 2025 14:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #37258 by ensuring consistency in culture settings throughout the application. The change updates the configuration to store the detected culture value when ICU resources are being processed.

Key Changes

  • Adds assignment of the detected culture value to config.applicationCulture in the ICU resource loading process

Comment thread src/mono/browser/runtime/loader/icu.ts Outdated
Comment thread src/mono/browser/runtime/loader/icu.ts Outdated
Copy link
Copy Markdown
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but @ilonatommy knows best :).

@ilonatommy ilonatommy added the arch-wasm WebAssembly architecture label Sep 2, 2025
@dariatiurina dariatiurina merged commit 10d5c79 into dotnet:main Sep 2, 2025
34 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error about "dynamic culture change while sharding ICU data" no longer always appears in 6.0

6 participants