-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom week day format #650
Conversation
Would you mind rebasing this on the command line so there's no merge commit? |
Done! |
I would like the same functionality, but I think it's more consistent to provide a I have a branch in my fork that implements a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -130,6 +130,7 @@ isDayHighlighted: PropTypes.func, | |||
// internationalization props | |||
displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), | |||
monthFormat: PropTypes.string, | |||
weekDayFormat: PropTypes.string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a moment proptype we could use for "valid format"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically I think any string is a valid format (you can include arbitrary strings by surrounding them with brackets)
Add a prop to customize the day format in the header.
Resolves #453 and #132