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
My use case is that I set my translated names manually on DayPicker, and then I would like to keep those names as the single source of truth. Now I have to set them in my captionElement for the second time. I think a good solution would be to expand the captionElement props to expose custom set months and weekday names.
This discussion was converted from issue #906 on February 10, 2021 03:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Seems like inside captionElement there is no way to access the months that are set with the 'months' prop on DayPicker component.
I replicated the issue here in example.js line 69.
My use case is that I set my translated names manually on DayPicker, and then I would like to keep those names as the single source of truth. Now I have to set them in my captionElement for the second time. I think a good solution would be to expand the captionElement props to expose custom set months and weekday names.
Beta Was this translation helpful? Give feedback.
All reactions