fullcalendar版本1.6语言支持?

时间:2015-09-01 07:52:45

标签: fullcalendar

我正在尝试将阿拉伯语lang添加到完整的日历v.16中,因为我在此版本中运行了Project,是否有人知道如何在此版本中实现它?

1 个答案:

答案 0 :(得分:0)

我很确定你已经解决了这个问题,但我会在这里写一个解决方法,因为lang支持似乎没有在1.6.x上实现。

例如,我正在用西班牙语更改其值。不知道阿拉伯语是否适用于这些语言,但其他一些语言可能会使用。

$('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    }, 

// just override these vars defined in fullcalendar.js
                monthNames:     ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Novimiembre","Diciembre"],
            monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],
            dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],
            dayNamesShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],
            buttonText:{prev:"<span class='fc-text-arrow'>&lsaquo;</span>",next:"<span class='fc-text-arrow'>&rsaquo;</span>",prevYear:"<span class='fc-text-arrow'>&laquo;</span>",nextYear:"<span class='fc-text-arrow'>&raquo;</span>",today:"hoy",month:"mes",week:"semana",day:"día"}, 

//rest of fullcalendar setting ....