fdipuma / IdentityServer3.Contrib.Localization

Localization support for IdentityServer3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

master:master dev:dev NuGet Stable Downloads

Contents

Implementation of IdentityServerV3s ILocalizationService

Usage

Specific culture:

   var options = new LocaleOptions { Locale = "nb-NO" };
   var localizationService = new GlobalizedLocalizationService(options);

To use IdentityServer3s default provided localization:

   var localizationService = new GlobalizedLocalizationService();

Pirate culture:

   var options = new LocaleOptions { Locale = "pirate" }; // ye be warned!
   var localizationService = new GlobalizedLocalizationService(options);

Supported languages

Install

  PM> Install-Package IdentityServer3.Localization

NuGet: https://www.nuget.org/packages/IdentityServer3.Localization

Contributing

How to add another language:

  1. Events.ISO-code-for-your-translation.resx
  2. Messages.ISO-code-for-your-translation.resx
  3. Scopes.ISO-code-for-your-translation.resx
  • Run the tests and fix any errors so they are green!
  • Rebase off upstream if behind, and submit the Pull Request

Dependencies

About

Localization support for IdentityServer3

License:MIT License


Languages

Language:C# 77.8%Language:PowerShell 22.2%