New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Localization Options and reuse zh-** cultures on setup #13254
Conversation
I presume the fallback will map |
No, as already said so many times, the aspnet request localization middleware fallback logic just lookups to the previous hyphen |
I need to recheck, because this is wrong, we already fallback to the parent elsewhere on the ASP.NET code base |
Hmm, answered too quickly, most of the time our Localization feature is not enabled on setup, so no aspnet middleware unless it is enlisted at the host level. So yes, here this is the real Parent culture that may be taken into account, but then, as already commented but I don't remember the details, the Parent culture may depend on the OS. So I'm closing this PR and let you check this ;) |
The |
Be aware that on setup most of the time the |
Ya, right |
When I said
Was from memory, didn't take the time to check. In fact the OC.Setup startup registers the RequestLocalizationMiddleware.
So I will re-open this PR because it just does what we need. |
That what I want to say, I might check this if I have a time before merge |
Okay, I also updated the But then no culture in the UI because in the So it revealed another little breaking change regardless Anyway I also updated Edited; So |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems the PR ignored the PR #13201 but no problem I will close it. My concer here is that LocalizationOptionsUpdater
is options or it can treated as options builder to retrieve RequestLocalizationOptions
with OC specific properties
Anyhow the only thing I dislike that we breaking an APIs without user notice,
Don't worry, it was not usable, anyway not recommended and prone of errors, it's more like a fix than a breaking change. |
As commented at the end of #11672 (comment) 3 weeks ago ;)