Franklin89 / Localisation

A library to provide localisation in client-side Blazor applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blazored Localisation

A library to provide localisation in client-side Blazor applications

Build Status

Nuget

Installing

You can install from Nuget using the following command:

Install-Package Blazored.Localisation

Or via the Visual Studio package manager.

Setup

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

public void Configure(IBlazorApplicationBuilder app)
{
    app.UseBlazoredLocalisation();
    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.

About

A library to provide localisation in client-side Blazor applications

License:MIT License


Languages

Language:TypeScript 53.8%Language:C# 46.2%