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

refactor(useCalendar): include calendar identifier when computing heading value #862

Merged
merged 8 commits into from
Apr 23, 2024

Conversation

epr3
Copy link
Collaborator

@epr3 epr3 commented Apr 20, 2024

Hello,

This PR extends the useDateFormatter function to also include the calendar identifier in its options, so you get the month names translated into your required locale and also updated the utility function to be able to accept options.

It also updates the useCalendar headingValue to use the calendar identifier when computing the fullMonth, fullYear and fullMonthAndYear.

Plus, the props.placeholder function has been updated to use isEqualMonth so any calendar system change would update the grid.

cc @sadeghbarati for pointing out the bug and providing me with reproductions.

Copy link
Collaborator

@sadeghbarati sadeghbarati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LPTM 😄💯

@zernonia
Copy link
Member

zernonia commented Apr 23, 2024

Nice addition @epr3 ! LGTM! 🚀

Also, welcome to the team! 💚

@zernonia zernonia merged commit 98fddfe into unovue:main Apr 23, 2024
2 of 3 checks passed
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