-
Notifications
You must be signed in to change notification settings - Fork 80
fix(input-time-picker): allow en-us and other supported lowercase locale codes #7038
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
fix(input-time-picker): allow en-us and other supported lowercase locale codes #7038
Conversation
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.
👍
Looks good but I think we can make the code more efficient with some kind of function that will format the effectiveLocale to a format we need to work with. The code added seems a little redundant.
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.
Thanks for fixing this.
Please add a new test before merging.
Related Issue: #7036
Summary
This fixes an issue where passing in
en-us
instead ofen-US
(or inheriting the lang from the HTML tag) was blocking rendering and throwing a console error.