Skip to content

fix(luxon): use standalone month tokens (LLL/LLLL) instead of MMM/MMMM#2801

Open
mixelburg wants to merge 1 commit into
bigcalendar:masterfrom
mixelburg:fix/luxon-standalone-month-format
Open

fix(luxon): use standalone month tokens (LLL/LLLL) instead of MMM/MMMM#2801
mixelburg wants to merge 1 commit into
bigcalendar:masterfrom
mixelburg:fix/luxon-standalone-month-format

Conversation

@mixelburg
Copy link
Copy Markdown
Contributor

Fixes #2599

The Luxon format tokens MMM/MMMM produce contextual month names, which are incorrect in some locales (e.g. Russian genitive "января" instead of "Январь", or broken output for Chinese). The standalone tokens LLL/LLLL are the correct form for calendar headers, where the month name appears on its own rather than as part of a full date phrase.

Changed monthHeaderFormat, dayHeaderFormat, agendaDateFormat, and weekRangeFormat to use LLLL/LLL accordingly.

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.

Luxon localizer should use LLL to format month instead of MMM

1 participant