johnkors / IdentityServer3.Contrib.Localization

Localization support for IdentityServer3
MIT License
19 stars 40 forks source link

Adding AutomaticFileLocalizationService. #40

Closed atbamparo closed 8 years ago

atbamparo commented 9 years ago

This service detect gets the current culture in string request time, allowing display messages in end-user language if configured in web.config.

johnkors commented 8 years ago

I believe the same can be done by using the LocaleOptions, no?

  var options = new LocaleOptions { Locale = CultureInfo.CurrentCulture.Name };
  var localizationService = new GlobalizedLocalizationService(options);
atbamparo commented 8 years ago

If i used correctly it cant be done that way because the LocalizationService will have the language of the first user (who initialize the app via startup). btw it can be achieve using a factory lambda =) Sry for bad request and english =)