-
-
Notifications
You must be signed in to change notification settings - Fork 531
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Before you start - checklist
- I have checked if this feature request is not already reported
Description
formatDay
, formatMonth
, etc. can all be customized via props — except for formatWeekday
, which is used in MonthView
/Weekdays
here:
react-calendar/src/MonthView/Weekdays.jsx
Lines 40 to 54 in b0dc446
const abbr = formatWeekday(locale, weekdayDate); | |
weekdays.push( | |
<div | |
key={weekday} | |
className={mergeClassNames( | |
weekdayClassName, | |
isWeekend(weekdayDate, calendarType) && `${weekdayClassName}--weekend`, | |
)} | |
> | |
<abbr aria-label={abbr} title={abbr}> | |
{formatShortWeekday(locale, weekdayDate).replace('.', '')} | |
</abbr> | |
</div>, | |
); |
Proposed solution
Add a formatWeekday
prop to allow passing a custom formatter
Alternatives
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request