-
Notifications
You must be signed in to change notification settings - Fork 13.5k
feat(datetime): localize am/pm labels in time picker #25389
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
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.
Some of the ta-IN screenshots show time picker popovers that are too narrow:
core/src/components/datetime/test/locale/datetime.e2e.ts-snapshots/datetime-locale-ta-IN-time-diff-md-ltr-Mobile-Chrome-linux.png
core/src/components/datetime/test/locale/datetime.e2e.ts-snapshots/datetime-locale-ta-IN-time-diff-md-ltr-Mobile-Firefox-linux.png
core/src/components/datetime/test/locale/datetime.e2e.ts-snapshots/datetime-locale-ta-IN-time-diff-md-rtl-Mobile-Chrome-linux.png
core/src/components/datetime/test/locale/datetime.e2e.ts-snapshots/datetime-locale-ta-IN-time-diff-md-rtl-Mobile-Firefox-linux.png
Not sure if that's a screenshot timing issue or an actual bug, though.
Also, don't forget to remove the old e2e.ts file.
Still working through the popover sizing (specifically on iOS). Will re-ping for reviews once I get that resolved 🤔 |
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.
(Whoops, clicked approve when I meant comment 😆)
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.
Great job!
It looks like when we updated picker column internal to make the rendered items buttons, we broke keyboard navigation across the columns (using tab to move across columns). Now when tabbing through the interface, you move through each individual button, column by column. Thoughts on what we can do here? I know our motivation for swapping it to a button was for screen readers. Would |
I think we should be able to add a I will test more today and put up a PR. (along with tests) |
Ok PR is up: #25464 |
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
The labels for "am" and "pm" are not localized to the user's current locale. This means in locales that either do not use am/pm in their time selection or have alternative labels, the text is incorrect.
This also affects the initial display of the time value, when using a presentation mode that opens the time picker in a popover.
Issue URL: #16279
What is the new behavior?
Example of the change with a locale of:
ta-IN
:Does this introduce a breaking change?
Other information
Dev-build:
6.1.8-dev.11654624050.16b62b1b
(outdated)