Implementation of IdentityServerV3s ILocalizationService
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);
- Default/English (the default provided by the DefaultLocalizationService)
- de-DE (German), danke Schön ManuelRauber!
- es-AR (Spanish, Argentina), ¡Muchas gracias, gustavoruscitto!
- fr-FR (French), Merci, ghys!
- nb-NO (Norwegian Bokmål)
- pl-PL (Polish)
- ro-RO (Romanian), vă mulțumesc, totpero!
- sv-SE (Swedish), tack krippz!
- tr-TR (Turkish), Iltera sayesinde!
- pirate (yarr), yarr repo owner!
- ar-SA (Arabic), OsmanMElsayed مَرَّ مِن هُنا!
PM> Install-Package IdentityServer3.Localization
NuGet: https://www.nuget.org/packages/IdentityServer3.Localization
How to add another language:
- Fork the repo
- Add the following resource files for your language in the resource folder (for instance by copying the default). ISO codes can be found [here])https://msdn.microsoft.com/en-us/library/ee796272(v=cs.20).aspx)
- Events.ISO-code-for-your-translation.resx
- Messages.ISO-code-for-your-translation.resx
- 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
- Thinktecture.IdentityServer3 - http://www.nuget.org/packages/Thinktecture.IdentityServer3/