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.