Nounou Biatrice Nounou Biatrice - 3 months ago 10
Javascript Question

A French calendar from an English calendar

The code bellow is about an English calendar:

<script>
$(document).ready(function() {
var calendar = $('#notice_calendar');

$('#notice_calendar').fullCalendar({
header: {
left: 'title',
right: 'today prev,next'
},

//defaultView: 'basicWeek',

editable: false,
firstDay: 1,
height: 530,
droppable: false,


});
});
</script>


I want to change this code to have a French calendar.
French calendar

Answer

From this doc, you can use the option lang: 'fr':

<script src='fullcalendar/fullcalendar.js'></script>
<script src='fullcalendar/lang-all.js'></script>
<script>

    $(document).ready(function() {

        $('#notice_calendar').fullCalendar({
        header: {
            left: 'title',
            right: 'today prev,next'
        },

        //defaultView: 'basicWeek',

        editable: false,
        firstDay: 1,
        height: 530,
        droppable: false,
        lang: 'fr'
        });

    });

</script>