Abbreviazioni dei mesi
Locale#monthsShort
deve essere un array contenente le abbreviazioni dei nomi dei mesi.
TIP
Per utilizzare questa funzionalità, è necessario il plugin UpdateLocale.
js
dayjs.extend(updateLocale);
dayjs.updateLocale('en', {
monthsShort: [
'Gen',
'Feb',
'Mar',
'Apr',
'Mag',
'Giu',
'Lug',
'Ago',
'Set',
'Ott',
'Nov',
'Dic',
],
});
Locale#monthsShort
può essere una funzione di callback, esattamente come Locale#months
.