BlazoredLocalisation 0.1.0

A library to provide localisation in client-side Blazor applications

Install-Package BlazoredLocalisation -Version 0.1.0
dotnet add package BlazoredLocalisation --version 0.1.0
paket add BlazoredLocalisation --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

BlazoredLocalisation

A library to provide localisation in client-side Blazor applications

Installing

You can install from Nuget using the following command:

Install-Package BlazoredLocalisation

Or via the Visual Studio package manger.

Setup

You just need to add app.UseBrowserLocalisation(); in your startup.cs file as per the example below.

public void Configure(IBlazorApplicationBuilder app)
{
    app.UseBrowserLocalisation();
    app.AddComponent<App>("app");
}

This will set the CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture for your Blazor application based on the language settings of the clients browser.

BlazoredLocalisation

A library to provide localisation in client-side Blazor applications

Installing

You can install from Nuget using the following command:

Install-Package BlazoredLocalisation

Or via the Visual Studio package manger.

Setup

You just need to add app.UseBrowserLocalisation(); in your startup.cs file as per the example below.

public void Configure(IBlazorApplicationBuilder app)
{
    app.UseBrowserLocalisation();
    app.AddComponent<App>("app");
}

This will set the CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture for your Blazor application based on the language settings of the clients browser.

Version History

Version Downloads Last updated
0.1.0 32 12/2/2018