According to docs, setting the locale
property should translate header buttons and set the firstDay
property, among others.
But this simple JS snipped (codepen) will be displayed with Sunday as first day of week.
Some strings are translated, like month name and weekdays.
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'timeGridWeek',
locale: "it",
});
calendar.render();
});
Am I doing something wrong, or is it a bug? Is it maybe because I'm including the library from a cdn?