Saturday, 15 February 2014

Get i18n to jquery fullcalendar in meteor -


Now I try to meteorate i18n in jquery fullcalendar, but as I thought it was more difficult. I think the following will work:

  $ ('# calendar'). FullCalendar ({lang: 'de'});  

I've put lang: 'd' in the "Template: calendar.rendered", where I set week mode but I do not get any change . Do I Need to Load the First Translation? I am asking because this code is placed in the jquery side:

  & lt; Script src = 'fullcalendar / fullcalendar.js' & gt; & Lt; / Script & gt; & Lt; Script src = 'fullcalendar / lang / es.js' & gt; & Lt; / Script & gt;  

Thanks for thanking you for the following: There is a typo above -> should be DJ

If so Where will it be with the meteor? Or is this the wrong option to get the translation?

fullcalendar Use the jQuery plugin meteor package.

Template

  & lt; Template name = "example" & gt; {{& Gt; Full calendar option}} & lt; / Template & gt;  

JS

  Template.example.helpers ({option: work () {return {defaultView: 'basicWeek', lang : 'D'};}});  

or

  {{& gt; Fullcalendar id = "myCalendar" lang = "de"}}  

here this.data

package link

Example-Demo: D, N

Report:


No comments:

Post a Comment