johnkors / IdentityServer3.Contrib.Localization

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

Detect current language #54

Closed runes83 closed 8 years ago

runes83 commented 8 years ago

Does this detect the current language of the user and switch? Or just enables to set a default language at startup?

johnkors commented 8 years ago

Enables a language set at startup.

runes83 commented 8 years ago

Is there plans on making this switch based on the current language of the user?

johnkors commented 8 years ago

No, sorry. But should be doable by using the OwinEnvironmentService.

johnkors commented 8 years ago

Could this be of help?

https://github.com/johnkors/IdentityServer3.Contrib.Localization/pull/56

runes83 commented 8 years ago

Yes this looks like a solution for us, I'll try it and report back :-)

johnkors commented 8 years ago

Sample added @ https://github.com/IdentityServer/IdentityServer3.Samples/pull/305

johnkors commented 8 years ago

Any luck?