Skip to content
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, input-date-picker): internal pickers update when changing locales #5887

Merged
merged 5 commits into from
Dec 5, 2022

Conversation

benelan
Copy link
Member

@benelan benelan commented Dec 3, 2022

Related Issue: #5855

Summary

The effectiveLocale is kept up to date using a MutationObserver, so it doesn't need to be passed down via attribute.

The input-date-picker e2e test I added for coverage is kinda funky, but I couldn't think of another way to make sure the internals are being localized. If you have any other ideas I'm happy to add to or change it.

@benelan benelan requested a review from a team as a code owner December 3, 2022 07:21
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 3, 2022
@benelan benelan changed the title fix(input-time-picker, input-date-picker): picker UI and state updates when changing locales fix(input-time-picker, input-date-picker): internal pickers update when changing locales Dec 5, 2022
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

@benelan benelan added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 5, 2022
@benelan benelan merged commit 9c2dc42 into master Dec 5, 2022
@benelan benelan deleted the benelan/5855-time-picker-locale-change branch December 5, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants