Skip to content

Add leap year label #86

Open
Open
@nicolasmartinez0510

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 )

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