mikecoj / MCDatepicker

A vanilla JavaScript Datepicker
https://mcdatepicker.netlify.app/
MIT License
93 stars 18 forks source link

Use "customWeekDays" for Chinese week days. #83

Open wingdragon opened 2 years ago

wingdragon commented 2 years ago

When I use "customWeekDays" on my calendar, the first 2 characters are used as the short form. For example, Monday => Mo, Sunday => Su

However, the Chinese calendar uses the 3rd character as the short form. For examples:

The Chinese week days are: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'] The correct short forms should be ['日','一','二','三','四','五','六'] but it now displays: ['星期','星期','星期','星期','星期','星期','星期']

Is that possible to choose which character(s) to be shown? Or is there any options for me to define my own short forms of weekdays? Thanks.