AM/PM button on calendar does not activate in Japanese environment #22924
Labels
[Feature] UI Components
Impacts or related to the UI component system
Internationalization (i18n)
Issues or PRs related to internationalization efforts
[Type] Bug
An existing feature does not function as intended
Describe the bug
AM/PM button on calendar does not activate in Japanese environment.
datetime is updated successfully.
It is correctly reversed in English environment.
To reproduce
Expected behavior
I want the appropriate AM/PM button to be active.
Editor version (please complete the following information):
I tried it in the following environment.
Additional context
I think there is a problem with the following part.
gutenberg/packages/components/src/date-time/time.js
Line 91 in c0e4f53
On Japanese environment,
moment().format('A');
return午後
or午前
.But below is a comparison with "AM" or "PM".
gutenberg/packages/components/src/date-time/time.js
Lines 303 to 320 in c0e4f53
The text was updated successfully, but these errors were encountered: