You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked if this feature request is not already reported
Description
Hello! I noticed that, when I open the calendar with the pt-PT locale, the names of the weekdays are not abbreviated. As the available screen space in my application is limited, this causes the names to get cut-off.
I understand that this the intended behavior (as the standard JS Date#toLocaleDateString with { weekday: 'short' } also does not abbreviate), but I think it would be cool to have the ability to customize them.
Proposed solution
It looks like the react-calendar project already exposes some options for customizing the weekdays, but I don't see a way to do this using only the react-date-picker dependency.
Before you start - checklist
Description
Hello! I noticed that, when I open the calendar with the
pt-PT
locale, the names of the weekdays are not abbreviated. As the available screen space in my application is limited, this causes the names to get cut-off.I understand that this the intended behavior (as the standard JS
Date#toLocaleDateString with { weekday: 'short' }
also does not abbreviate), but I think it would be cool to have the ability to customize them.Proposed solution
It looks like the
react-calendar
project already exposes some options for customizing the weekdays, but I don't see a way to do this using only thereact-date-picker
dependency.https://github.com/wojtekmaj/react-calendar/blob/main/packages/react-calendar/src/Calendar.tsx props contains a
formatShortWeekday
function.Alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: