2015-09-01 88 views
0

我想添加阿拉伯語朗朗到完整的日曆v.16,因爲我有項目運行在這個版本有沒有人知道如何在這個版本中實現它?fullcalendar 1.6版語言支持?

+0

請分享您迄今爲止已嘗試過的一些代碼,包括完成的分析以及您卡住的確切位置。否則,這似乎是一個低質量的職位。 – Aditya

回答

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 ....