Blazor.WebAssembly.DynamicCulture.Loader
3.1.0
dotnet add package Blazor.WebAssembly.DynamicCulture.Loader --version 3.1.0
NuGet\Install-Package Blazor.WebAssembly.DynamicCulture.Loader -Version 3.1.0
<PackageReference Include="Blazor.WebAssembly.DynamicCulture.Loader" Version="3.1.0" />
paket add Blazor.WebAssembly.DynamicCulture.Loader --version 3.1.0
#r "nuget: Blazor.WebAssembly.DynamicCulture.Loader, 3.1.0"
// Install Blazor.WebAssembly.DynamicCulture.Loader as a Cake Addin #addin nuget:?package=Blazor.WebAssembly.DynamicCulture.Loader&version=3.1.0 // Install Blazor.WebAssembly.DynamicCulture.Loader as a Cake Tool #tool nuget:?package=Blazor.WebAssembly.DynamicCulture.Loader&version=3.1.0
Blazor.WebAssembly.DynamicCulture.Loader
Blazor WebAssembly loads the resource assemblies solely during the initial app startup. Consequently, if you wish to dynamically change the culture at a later point, you would need to reload the page in order to obtain the new resource assemblies. However, with the inclusion of this package, you gain the capability to load all localization satellite assemblies simultaneously during startup, eliminating the need to refresh the page in order to access the updated resource assembly.
Getting Started
Usage Example
Blazor WASM
var host = builder.Build();
await host.LoadSatelliteCultureAssembliesCultureAsync(new[] { new CultureInfo("ru"), new CultureInfo("et") });
await host.RunAsync();
or
await builder.Build().RunWithSatelliteCultureAssembliesAsync(new[] { new CultureInfo("ru"), new CultureInfo("et") });
NB! Do not use it for Blazor ServerSide.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.4)
-
net7.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.4)
-
net8.0
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Blazor.WebAssembly.DynamicCulture.Loader:
Package | Downloads |
---|---|
Blazor.WebAssembly.DynamicCulture
This package helps to add localization support for your Blazor. This mimics almost the same functionality as `.UseRequestLocalization` for Blazor ServerSide |
GitHub repositories
This package is not used by any popular GitHub repositories.