Localization

    flatpickr can be localized per-instance, or globally.

    Using plain

    1. const flatpickr = require("flatpickr");
    2. const Russian = require("flatpickr/dist/l10n/ru.js").default.ru;
    3. });

    Localization in a Browser Environment

    1. <script src="https://npmcdn.com/flatpickr/dist/flatpickr.min.js"></script>
    2. <script src="https://npmcdn.com/flatpickr/dist/l10n/ru.js"></script>

    Localize globally (for all instances):

    1. flatpickr.localize(flatpickr.l10ns.ru);

    If you’d like the option to persist regardless of locale, use the locale option to override specific fields:

    1. flatpickr(myElem, {
    2. locale: {
    3. firstDayOfWeek: 2
    4. });