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 leap year label #86

Open
nicolasmartinez0510 opened this issue Dec 13, 2021 · 0 comments
Open

Add leap year label #86

nicolasmartinez0510 opened this issue Dec 13, 2021 · 0 comments

Comments

@nicolasmartinez0510
Copy link

Something that would be cool to have is a label next to date navigation to indicate if that year is leap year. Like this:

<span className='nice-dates-navigation_current'>
        {format(month, getYear(month) === getYear(new Date()) ? 'LLLL' : 'LLLL yyyy', { locale })}
        <span className="nice-dates-navigation_current_leap-year">{ isLeapYear(month) ? ' (Leap Year) ' : '' }</span>
</span>

imagen

obviously to do this need to add the internationalization(of course if you want to do this )

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

No branches or pull requests

1 participant