aboveyunhai / chakra-dayzed-datepicker

Chakra UI + Dayzed = datepicker
https://aboveyunhai.github.io/chakra-dayzed-datepicker/
MIT License
222 stars 46 forks source link

[Feature] Add locale support by adding another type of config #53

Open Nosferatu31 opened 1 year ago

Nosferatu31 commented 1 year ago
Nosferatu31 commented 1 year ago

This allows to support things such as:

<RangeDatepicker
    configs={{ locale: 'ru', firstDayOfWeek: 1 }}
    selectedDates={selectedDates}
    onDateChange={setSelectedDates}
    closeOnSelect={isRangeChecked}
/>

which overrides dateFormat, dayNames and monthNames:

image