RequestLocalizationMiddleware does not handle CultureInfo.InvariantCulture since version 8 #58843
Open
1 task done
Labels
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
Is there an existing issue for this?
Describe the bug
The RequestLocalizationMiddleware sets the culture to default even if the
RequestLocalizationOptions
supportsCultureInfo.InvariantCulture
since version 8.Example:
At the end,
CultureInfo.CurrentCulture
was always theDefaultRequestCulture
instead ofCultureInfo.InvariantCulture
.Note: this code worked until version 8
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: