CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

how change title header month

Open azcodia opened this issue 3 years ago • 2 comments

how to change the text in this yellow circle https://i.pinimg.com/originals/7b/65/0f/7b650f8d7689de7b821e1135412fb0fe.jpg

azcodia avatar Jun 21 '22 19:06 azcodia

monthTitleStyle and yearTitleStyle

sipotat avatar Nov 10 '22 11:11 sipotat

You can use the months prop to provide translations for the months. See the Props section of the readme

If you use moment.js with a locale set, you can use it so 'autogenerate translations' like this:

<CalendarPicker
  weekdays={[...Array(7).keys()].map(i => moment().weekday(i).format('dd'))}
  months={[...Array(12).keys()].map(i => moment().month(i).format('MMM'))}
/>

Same will work with weekdays.

image

Consult the moment.js docs on how to use the .format() method on moment

maxbethke avatar Nov 20 '23 14:11 maxbethke