来自英文日历的法国日历

时间:2016-09-04 21:52:23

标签: javascript 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>

我想将此代码更改为具有法语日历。 French calendar

1 个答案:

答案 0 :(得分:0)

this doc,您可以使用选项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>