I'm looking for something similar like the old behaviour of setting the Culture and everything in the request after that has that Culture.
Similar like ASP.NET 4.5:
Thread.CurrentThread.CurrentCulture = culture_info;
Thread.CurrentThread.CurrentUICulture = culture_info;
When I do this right now, some code seems to be constantly resetting the Culture to English at various points in the MVC pipeline.
Why do I want that? Because I want to set the culture through my extended routing logic in a very large (and customizable) platform-type of web project.
The default RouteDataRequestCultureProvider doesn't seem to work at all - see explained here:
https://irensaltali.com/en/asp-net-core-mvc-localization-by-url-routedatarequestcultureprovider/
and
Localization works when culture is set via QueryString but not when culture is in route
I don't want to use the "hardcoded" url parsing that is being presented as a solution, because my routing logic is complicated - not all routes will have a culture defined in the same spot in the URL.
I tried setting this, but that also didn't work:
httpContext.Features.Set<IRequestCultureFeature>(new RequestCultureFeature(request_culture, new DummyProvider()));
Is there any workaround for just simply setting the Culture for the rest of the request?