In advance, excuse my English!
I've been trying to understand for several hours why changing the locales setting don't work in my code. I would like to switch my calendar (from fullcalendar.io) in "Fr", so I put the right language .js file in a folder and tried to point my page on it.
Off, it does not take my modification in the code.
Do you have an idea or a track to propose to me?
I warn, I'm not necessarily really friend with the code in general even if I do the max ^^
Thank you!
Here's a part of my code:
<script src='./packages/core/locales/fr.js'></script>
document.addEventListener('DOMContentLoaded', function() {
var initialLocaleCode = 'fr';
var localeSelectorEl = document.getElementById('locale-selector');
var calendarEl = document.getElementById('calendar');
var calendar = $('#calendar').fullCalendar({
plugins: [ 'interaction', 'dayGrid', 'timeGrid', 'list' ],
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay,listMonth'
},
locale: initialLocaleCode,
buttonIcons: false,
weekNumbers: true,
navLinks: true,
editable: true,
eventLimit: true, // allow "more" link when too many events
events: "events.php",