Blazor.WebAssembly.DynamicCulture.Loader
3.0.0-preview
See the version list below for details.
dotnet add package Blazor.WebAssembly.DynamicCulture.Loader --version 3.0.0-preview
NuGet\Install-Package Blazor.WebAssembly.DynamicCulture.Loader -Version 3.0.0-preview
<PackageReference Include="Blazor.WebAssembly.DynamicCulture.Loader" Version="3.0.0-preview" />
paket add Blazor.WebAssembly.DynamicCulture.Loader --version 3.0.0-preview
#r "nuget: Blazor.WebAssembly.DynamicCulture.Loader, 3.0.0-preview"
// Install Blazor.WebAssembly.DynamicCulture.Loader as a Cake Addin #addin nuget:?package=Blazor.WebAssembly.DynamicCulture.Loader&version=3.0.0-preview&prerelease // Install Blazor.WebAssembly.DynamicCulture.Loader as a Cake Tool #tool nuget:?package=Blazor.WebAssembly.DynamicCulture.Loader&version=3.0.0-preview&prerelease
Blazor.WebAssembly.DynamicCulture.Loader
Blazor WebAssembly only loads the resource assemblies during the initial app startup. So if you change the culture dynamically later, you do have to reload the page to get new resource assemblies. But this package adds the ability to load all localization satellite assemblies at once during startup and you do not need to refresh the page to get the new resouce 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.