chrissainty / BlazoredLocalisation

Moved to Blazored Org

Home Page:https://github.com/blazored/localisation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlazoredLocalisation

A library to provide localisation in client-side Blazor applications

NuGet

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.

Screenshot of BlazorLocalisation

About

Moved to Blazored Org

https://github.com/blazored/localisation

License:MIT License


Languages

Language:C# 71.7%Language:JavaScript 28.3%