From 41380a3138577679de602cddcd6bd1bfcc2ac9dd Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 12 Nov 2023 19:04:24 +0100 Subject: [PATCH] Use en-gb locale for calendar Closes: #43 --- templates/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,