clauderic / react-infinite-calendar

✨ Infinite scrolling date-picker built with React, with localization, range selection, themes, keyboard support, and more.

Home Page:http://clauderic.github.io/react-infinite-calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to add Month text support in locale?

maximdx opened this issue · comments

Now we can set weekdays texts by providing the locale object.
Is it possible to add Month text support in locale as we do in weekdays please?

It seems you cannot provide month as below, but you can edit month texts what you want at date-fns/locale/{language}/build_format_locale

    locale?: {
        blank?: string;
        headerFormat?: string;
        todayLabel?: {
            long: string;
        };
        weekdays?: string[];
        weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
    };

Good to know that. Thanks for the help!