Full Calendar

Kalubeticismo pro asked 5 years ago

Hello, I bought the fullcalendar plugin, right now I am configuring and I cannot change the language to Spanish for months, days etc. How can I change the language? I have tried:

$(document).ready(function() { $('#calendar').fullCalendar({ monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'], }); });

I have even downloaded fullcalendar from another site, to get the local folder, which is the folder that contains the scripts of the languages ​​on the official full calendar page, in case when integrating the folder and calling the language 'es.js' from My code could work, but it has not turned out either, so I don't know what to do, please answer me soon I need to do it quickly because it is a project that I have to deliver, I definitely want to change the default English language from full calendar to the language Spanish.


Marta Szymanska staff pro premium answered 5 years ago

Hi,

have you tried this solution: https://fullcalendar.io/docs/v3/lang?

Best, Marta


Kalubeticismo pro commented 5 years ago

thank you Marta, but I already did that and it doesn't work, apart from the fullcalendar that I paid here in mdb it doesn't bring the languages ​​folder, I have tried to download version 3, version 4 of the official full calendar page and I have put in my js folder the es.js and locale-all.js files, I have performed the function in jQuery like this:

$ (document) .ready (function () {

  $ ('# calendar'). fullCalendar ({
    locale: 'is',

    header: {
      left: 'prev, next today',
      center: 'title'
    },

    defaultDate: '2019-09-27',
    navLinks: true,
    editable: true,
    eventLimit: true,
    selectable: true,

    select: function (startDate, endDate) {
      var dateStart = moment (startDate);
      var dateEnd = moment (endDate);
    }
  });
});

and nothing follows the calendar in English :(, is there no other way to change the texts myself by editing them? Those of the months, days ... thanks


Kalubeticismo pro commented 5 years ago

In my function of jQuery does not put is, put e s (by the Spanish language) when translating the text from Spanish to English it was changed thanks.


Marta Szymanska staff pro premium commented 5 years ago

Hi,

do you have any demo of your website which you can show us or send me to m.szymanska@mdbootstrap.com to allow me to debug your code? I'll try to help you.

Best, Marta


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.10
  • Device: pc
  • Browser: firefox
  • OS: windows
  • Provided sample code: No
  • Provided link: No