From 2895e42218302f1191998b8f14874a0e5a81d6ff Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:09:44 -0400 Subject: [PATCH] [11.0 P5] Document client-side culture handling in Blazor (#37215) --- .../blazor/globalization-localization.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/aspnetcore/blazor/globalization-localization.md b/aspnetcore/blazor/globalization-localization.md index b677ecabe02e..35cea2b43cae 100644 --- a/aspnetcore/blazor/globalization-localization.md +++ b/aspnetcore/blazor/globalization-localization.md @@ -184,6 +184,26 @@ A data file is included to make timezone information correct. If the app doesn't :::moniker-end +:::moniker range=">= aspnetcore-11.0" + + + +## Client-side prerendering in a Blazor Web App preserves the server's culture + +By default, client-side prerendering on the server (`.Client` project in a Blazor Web App) persists the server's and into component state and applies them on the client before satellite assemblies load. + +Apps that require the client to choose a culture independently of the server can opt out with `WebAssemblyComponentsOptions.UseCultureFromServer` in the Blazor Web App's `Program` file: + +```csharp +builder.Services.AddRazorComponents() + .AddInteractiveWebAssemblyComponents(options => + { + options.UseCultureFromServer = false; + }); +``` + +:::moniker-end + ## Demonstration component The following `CultureExample1` component can be used to demonstrate Blazor globalization and localization concepts covered by this article.