Open victornikitin opened 1 month ago
Found solution, but still have problems with translate.
Code:
<InfiniteCalendar
width={300}
height={300}
locale={{
locale: require('@appannie/react-infinite-calendar/node_modules/date-fns/locale/fr').default,
headerFormat: "d MMM"
}}
value={value}
/>
Month names in calendar are translated. But in header is still not.
Hello. Trying to pass locale, but headerFormat and month names are shown as "Invalid date".
Code:
How to pass it correctly? Or may be even change api of locale attribute to momemt?