Hi,@David Thielen,You could add a custom culture provider follow this document
var localizationOptions = new RequestLocalizationOptions()
.SetDefaultCulture(supportedCultures[0])
.AddSupportedCultures(supportedCultures)
.AddSupportedUICultures(supportedCultures)
.AddInitialRequestCultureProvider((new CustomRequestCultureProvider(async context =>
{
var cultureclaim = context.User.Claims.Where(x => x.Type == "Culture").FirstOrDefault();
var result = new ProviderCultureResult(cultureclaim?.Value??"en-US");
return await Task.FromResult(result);
})));
app.UseRequestLocalization(localizationOptions);
I scaffold Identity in the example, removed the selector,registed a user with Culture
claim has value: es-CL
Now the result: