Skip to content

Add leap year label #86

Description

@nicolasmartinez0510

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 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions