javascript - lang option does not work in wordpress -


instead of using full calendar plugin, managed use javascript , jquery display event data calendar (i created own post type not know how use wp-calendar plugin). works fine , other options works fine except lang option!

as fullcalendar displays in english, wanted configure korean example did this:

jquery(document).ready(function(){              jquery('#calendar').fullcalendar({                 theme: true,                 lang: 'ko',                 header: {                     left: 'prev, next today',                     center: 'title',                     right: 'month,agendaweek,agendaday'                 },                 events: themeforce.events             });     }); 

it worked fine separate php (not functions.php each theme) in wordpress not. have idea why might cause problem?

plugin website: https://wordpress.org/plugins/wp-calendar/

i haven't found any lang parameter inside fullcalendar.js. these options need:

// time formats titleformat: {     month: 'mmmm yyyy',     week: "mmm d[ yyyy]{ '—'[ mmm] d yyyy}",     day: 'dddd, mmm d, yyyy' }, columnformat: {     month: 'ddd',     week: 'ddd m/d',     day: 'dddd m/d' }, timeformat: { // event elements     '': 'h(:mm)t' // default },  // locale isrtl: false, firstday: 0, monthnames: ['january','february','march','april','may','june','july','august','september','october','november','december'], monthnamesshort: ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'], daynames: ['sunday','monday','tuesday','wednesday','thursday','friday','saturday'], daynamesshort: ['sun','mon','tue','wed','thu','fri','sat'], buttontext: {     prev: ' ◄ ',     next: ' ► ',     prevyear: ' << ',     nextyear: ' >> ',     today: 'today',     month: 'month',     week: 'week',     day: 'day' }, 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -