Skip to content
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 locale property to CalendarHeaderProps interface #1109

Merged

Conversation

winie
Copy link

@winie winie commented Oct 11, 2024

First of all, I would like to thank you for providing this component. We use it in our open source project, which is an app for our students.

I have added the locale property to the CalendarHeaderProps interface. In the _CalendarContainer component (currently on line 377) the locale value is stored in the headerProps constant. The headerProps constant is later transferred to the HeaderComponent component as properties. If a custom header renderer is programmed, the calendar transfers the desired language. In my humble opinion, this is good software design.

Unfortunately, you first have to read the code to recognize this fact, because the locale property is missing in the CalendarHeaderProps interface. Otherwise you could already recognize the transfer of the language in the CalendarHeaderProps interface.

Copy link

vercel bot commented Oct 11, 2024

Someone is attempting to deploy a commit to the Kazuya Gosho's projects Team on Vercel.

A member of the Team first needs to authorize it.

@acro5piano
Copy link
Owner

@winie Good catch! Thank you for your contribution.

@acro5piano acro5piano merged commit 2e71dbb into acro5piano:main Oct 15, 2024
1 of 2 checks passed
@acro5piano
Copy link
Owner

Released on v4.15.1

@winie
Copy link
Author

winie commented Oct 16, 2024

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants