Skip to content

Add formatWeekday prop #620

@swissspidy

Description

@swissspidy

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:

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions