-
-
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
DayPickerSingleDateController support phrases. Changed phrases state … #623
Conversation
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.
Thanks! Would you mind adding a regression test for this?
@@ -543,9 +543,10 @@ export default class DayPickerSingleDateController extends React.Component { | |||
renderCalendarInfo, | |||
isFocused, | |||
isRTL, | |||
phrases |
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.
This line needs a trailing comma
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.
Ok, it's done.
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.
This looks good to me! :) This was a bit of copy/pasta breakage from the DayPickerRangeController
which does have a stateful phrases object.
@davidskoog can you add a regression test for this? That's all I'm waiting on :-) |
Per discussion; let's bring this in now but ASAP ensure we're testing all the phrases props.
Hi again @ljharb. Sorry for this late reply. I'm have been on vacation for a time. I see that you merged my pull request, exciting. I don't know what a regression test is but until next time I will find out. // David |
@davidskoog just an automated test to prevent this specific issue from occurring in the future - i.e., from "regressing". |
DayPickerSingleDateController support phrases. Changed phrases state to props.
When using DayPickerSingleDateController I'm not able to use phrases for language translations.
Here is a suggestion for a solution.