Skip to content

[scheduler] Use standalone month format for calendar headers#22841

Open
adamowski10 wants to merge 2 commits into
mui:masterfrom
adamowski10:standalone-month-header-scheduler
Open

[scheduler] Use standalone month format for calendar headers#22841
adamowski10 wants to merge 2 commits into
mui:masterfrom
adamowski10:standalone-month-header-scheduler

Conversation

@adamowski10

Copy link
Copy Markdown
Contributor
  • I have followed (at least) the PR section of the contributing guide.
    Could a maintainer please add the scope: scheduler and type: bug labels? 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:

  • calendar header
  • mini calendar month label
  • agenda month label
  • timeline month headers
    Keep monthFullLetter (MMMM) for day-with-month formatting.
    This aligns scheduler with Date Pickers, which already use LLLL for month names.

Summary

Fixes grammatically incorrect month headers in inflected locales without changing correct day-with-month formatting.

Changes

  • Add monthFullLetterStandalone to TemporalAdapterFormats
  • Map it to LLLL in TemporalAdapterDateFns
  • Update header/month formatting call sites to use the standalone token
  • Add adapter, helper, and EventCalendar integration tests

Test plan

  • pnpm test:unit --project "x-scheduler-internals" --run
  • pnpm test:unit --project "x-scheduler" --run
  • pnpm eslint
  • pnpm prettier

@code-infra-dashboard

code-infra-dashboard Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22841--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants