-
Notifications
You must be signed in to change notification settings - Fork 178
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
Calendar: Pass custom formatters to react-calendar
#11745
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
The words AM / PM are not translated. Whether you see this setting or not depends on the time format you've set under Settings -> General If you choose a setting like If you choose This is existing and expected behavior that is not changed here. Check the PR description:
This is blocked by wojtekmaj/react-calendar#620 |
Size Change: +73 B (0%) Total Size: 2.64 MB ℹ️ View Unchanged
|
Looks like our translators translated it into Hindi, see https://translate.wordpress.org/projects/wp-plugins/web-stories/stable/hi/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=10535771&filters%5Btranslation_id%5D=84343736 Not an expert there so I trust their decision. |
Plugin builds for 94598f6 are ready 🛎️!
|
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.
This looks good. But should go through QA.
@spacedmonkey @swissspidy hey guys! When I change to the language to Portuguese or French, on Settings > General, I see some weird week days, such as Game, Life, Home, Sec, What, Who... |
@felipebochehin87 I don't see this: Did you accidentally translate the site using Google Translate? That would explain this. Try disabling Google Translate or use another browser briefly. |
Oh that explains the "Game", "Jeu"... Makes sense. Works for me too. Thanks! Approving this PR. |
Ensures weekdays are properly translated in calendar. See #11745
Context
Summary
Passes custom date formatters to
react-calendar
to ensure dates are properly localized according to the WPRelevant Technical Choices
To-do
Maybe make the
F Y
format filterable (wrap in__()
)User-facing changes
Calendar should be translated
Testing Instructions
This PR can be tested by following these steps:
Known limitation
When you hover over the weekday, the day is not translated yet.
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #11734