Skip to content

OsmanMElsayed/IdentityServer3.Contrib.Localization

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 77.8%
  • PowerShell 22.2%