Skip to content

Sets localization based on ui_cultures parameter in OIDC

License

Notifications You must be signed in to change notification settings

span/oidc-localization-provider

Repository files navigation

oidc-localization-provider

Sets localization based on ui_cultures parameter in OIDC

Usage

This package sets up a custom QueryStringRequestCultureProvider that processes the query parameter ui_locales specified in OpenIDConnect.

It can be configured like this:

// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
    services
        .AddLocalization()
        .AddOidcLocalization();
    services.AddControllers();
}

About

Sets localization based on ui_cultures parameter in OIDC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages