formaui-net.Framework.Culture.Blazor.Server
1.0.0-preview.27
Prefix Reserved
dotnet add package formaui-net.Framework.Culture.Blazor.Server --version 1.0.0-preview.27
NuGet\Install-Package formaui-net.Framework.Culture.Blazor.Server -Version 1.0.0-preview.27
<PackageReference Include="formaui-net.Framework.Culture.Blazor.Server" Version="1.0.0-preview.27" />
<PackageVersion Include="formaui-net.Framework.Culture.Blazor.Server" Version="1.0.0-preview.27" />
<PackageReference Include="formaui-net.Framework.Culture.Blazor.Server" />
paket add formaui-net.Framework.Culture.Blazor.Server --version 1.0.0-preview.27
#r "nuget: formaui-net.Framework.Culture.Blazor.Server, 1.0.0-preview.27"
#:package formaui-net.Framework.Culture.Blazor.Server@1.0.0-preview.27
#addin nuget:?package=formaui-net.Framework.Culture.Blazor.Server&version=1.0.0-preview.27&prerelease
#tool nuget:?package=formaui-net.Framework.Culture.Blazor.Server&version=1.0.0-preview.27&prerelease
Forma.Framework.Culture.Blazor.Server
What the culture state needs from an Interactive Server host: a circuit handler that sets
CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture from the circuit's culture state before
every inbound activity, each UI event and each call from script into .NET, and registers the circuit's
state with the page's culture coordinator of
Forma.Framework.Culture.Browser.Interop
as each connection comes up, before the circuit renders. The circuit's ICultureSwitch requests through
the coordinator, so a switch reaches every circuit on the page and the document, and code that reads the
ambient culture in an event after a switch reads the new cultures. While the connection is down a switch
fails at once with InvalidOperationException, as it does in a static render.
The package comes with formaui-net.Blazor.Server, and AddFormaServerIntegration() registers it through
AddFormaCultureServerIntegration(), which also registers the culture state, its registration with the coordinator,
the coordinated switch and the switch's policy. A host without AddFormaServerIntegration() makes the same call
beside AddFormaUIServices(), and names the policy where a switch writes the culture cookie:
builder.Services.AddFormaCultureServerIntegration(new CultureSwitchPolicy { Persistence = CultureSwitchPersistence.Cookie });
builder.Services.AddFormaUIServices();
The request's cultures
An application that registers an ICultureProvider and chooses each request's cultures through ASP.NET
Core's request localization, which takes them from lists fixed at startup, adds UseFormaRequestCulture()
after it. The step runs the request in the provider's cultures for the names request localization chose,
setting CultureInfo.CurrentCulture, CultureInfo.CurrentUICulture and the request culture feature, so
code reading them in a prerender reads the application's patterns, as a circuit the request starts does.
Without a provider, it leaves the request in its own cultures; culture routing applies the provider
itself.
using Forma.Framework.Culture.Blazor.Server;
app.UseRequestLocalization();
app.UseFormaRequestCulture();
License
Apache License 2.0, under the repository's LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- formaui-net.Framework.Culture (= 1.0.0-preview.27)
- formaui-net.Framework.Culture.Browser.Interop (= 1.0.0-preview.27)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on formaui-net.Framework.Culture.Blazor.Server:
| Package | Downloads |
|---|---|
|
formaui-net.Blazor.Server
The server half of Forma's component library: what a host that renders on the server needs beside the components, the document head FormaPageHead and the registration that adds the interactive server circuit's integrations. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-preview.27 | 44 | 12/3/2026 |
| 1.0.0-preview.26 | 48 | 12/3/2026 |
| 1.0.0-preview.25 | 48 | 12/2/2026 |
| 1.0.0-preview.24 | 60 | 12/1/2026 |
| 1.0.0-preview.23 | 67 | 11/30/2026 |
| 1.0.0-preview.22 | 66 | 11/30/2026 |
| 1.0.0-preview.21 | 72 | 11/29/2026 |
| 1.0.0-preview.20 | 76 | 11/26/2026 |
| 1.0.0-preview.19 | 70 | 11/26/2026 |
| 1.0.0-preview.18 | 76 | 11/26/2026 |
| 1.0.0-preview.17 | 69 | 11/26/2026 |
| 1.0.0-preview.16 | 66 | 11/24/2026 |
| 1.0.0-preview.15 | 66 | 11/23/2026 |
| 1.0.0-preview.14 | 63 | 11/23/2026 |
| 1.0.0-preview.13 | 71 | 11/21/2026 |
| 1.0.0-preview.12 | 69 | 11/20/2026 |
| 1.0.0-preview.11 | 65 | 11/18/2026 |
| 1.0.0-preview.10 | 73 | 11/17/2026 |
| 1.0.0-preview.9 | 104 | 11/17/2026 |
| 1.0.0-preview.8 | 76 | 11/17/2026 |
What this release changed is in Forma's changelog: https://github.com/FormaUI/Forma/blob/v1.0.0-preview.27/CHANGELOG.md