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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor.WebAssembly.DynamicCulture.Loader" Version="3.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blazor.WebAssembly.DynamicCulture.Loader --version 3.1.0                
#r "nuget: Blazor.WebAssembly.DynamicCulture.Loader, 3.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

Nuget Nuget GitHub

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
3.1.0 3,647 7/18/2024
3.0.0 8,575 11/15/2023
3.0.0-preview 168 8/30/2023
2.0.0 976 11/21/2022
1.1.0 431 11/15/2022
1.0.0 509 6/17/2022