Error on dev
fingunt opened this issue · comments
Luiz Martins commented
Luiz Martins commented
VueDatePicker(
v-model="schedule.start_date",
inline,
color="#7159c1",
locale="locale",
@input="selectTimesCommomArea"
)
my component
Mathieu Stanowski commented
locale should not be a string.
Here an example from README :
const locale = {
lang: {
name: 'it',
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
weekStart: 1,
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
ordinal: n => `${n}º`,
buttonCancel: 'Annulla',
buttonValidate: 'Ok',
rangeHeaderText: 'Dalle %d Alle 13',
},
};
Luiz Martins commented
Yes, sorry thanks man