[scheduler] Use standalone month format for calendar headers#22841
Open
adamowski10 wants to merge 2 commits into
Open
[scheduler] Use standalone month format for calendar headers#22841adamowski10 wants to merge 2 commits into
adamowski10 wants to merge 2 commits into
Conversation
Deploy previewhttps://deploy-preview-22841--material-ui-x.netlify.app/ Bundle size
Check out the code infra dashboard for more information about this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Could a maintainer please add the
scope: schedulerandtype: buglabels? I don't have permission to add labels to this PR.Problem
In locales with grammatical month forms (Polish, Czech, Russian, Finnish, etc.), scheduler calendar headers used the date-fns formatting month token (
MMMM) instead of the standalone token (LLLL).For example in Polish, the header showed „czerwca 2026” (genitive) instead of „Czerwiec 2026” (nominative).
Day-with-month patterns such as „13 czerwca” were already correct and should keep using
MMMM.Fix
Introduce
monthFullLetterStandalone(LLLL) in the scheduler date-fns adapter and use it for standalone month titles:Keep
monthFullLetter(MMMM) for day-with-month formatting.This aligns scheduler with Date Pickers, which already use
LLLLfor month names.Summary
Fixes grammatically incorrect month headers in inflected locales without changing correct day-with-month formatting.
Changes
monthFullLetterStandalonetoTemporalAdapterFormatsLLLLinTemporalAdapterDateFnsEventCalendarintegration testsTest plan
pnpm test:unit --project "x-scheduler-internals" --runpnpm test:unit --project "x-scheduler" --runpnpm eslintpnpm prettier