IRequestCultureFeature returns null in ASP.NET Core 6

... unless you first register its use in your service configuration:

app.UseAuthorization();

app.UseRequestLocalization(); // <--

app.MapControllerRoute(

That's all, folks!

Comments

Popular posts from this blog

Auto Mapper and Record Types - will they blend?

Unit testing your Azure functions - part 2: Queues and Blobs

Testing WCF services with user credentials and binary endpoints