diff --git a/templates/index.html b/templates/index.html index 0c454eb..0caf2b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,8 @@ "@fullcalendar/core": "https://cdn.skypack.dev/@fullcalendar/core@6.1.9", "@fullcalendar/daygrid": "https://cdn.skypack.dev/@fullcalendar/daygrid@6.1.9", "@fullcalendar/timegrid": "https://cdn.skypack.dev/@fullcalendar/timegrid@6.1.9", - "@fullcalendar/list": "https://cdn.skypack.dev/@fullcalendar/list@6.1.9" + "@fullcalendar/list": "https://cdn.skypack.dev/@fullcalendar/list@6.1.9", + "@fullcalendar/core/locales/en-gb": "https://cdn.skypack.dev/@fullcalendar/core@6.1.9/locales/en-gb" } } @@ -23,10 +24,12 @@ import dayGridPlugin from '@fullcalendar/daygrid' import timeGridPlugin from '@fullcalendar/timegrid' import listPlugin from '@fullcalendar/list' + import gbLocale from '@fullcalendar/core/locales/en-gb'; document.addEventListener('DOMContentLoaded', function() { const calendarEl = document.getElementById('calendar') const calendar = new Calendar(calendarEl, { + locale: gbLocale, plugins: [dayGridPlugin, timeGridPlugin, listPlugin ], themeSystem: 'bootstrap5', firstDay: 1,