Hello, I downloaded a fullcalendar template from Adan Shaw , but the default language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.
Hello, I downloaded a fullcalendar template from Adan Shaw , but the default language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.
Within the folder you downloaded from fullcalendar, you have the lang subfolder containing all languages supported by fullcalendar
Copythept-br.js
javascriptandaddtoyourproject.
Yourheaderwouldlooklikethis:
<scriptsrc='fullcalendar/fullcalendar.js'></script><scriptsrc='fullcalendar/lang/pt-br.js'></script><script>$(document).ready(function(){$('#calendar').fullCalendar({//todachamadadetextodofullcalendarserábuscadadoarquivopt-br.js});});</script>
Hereyouhavethe official documentation that can help you.
Try changing your FullCalendar settings like this:
calendar = $('#calendar').fullCalendar({
ignoreTimezone: false,
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sabado'],
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
titleFormat: {
month: 'MMMM yyyy',
week: "d[ MMMM][ yyyy]{ - d MMMM yyyy}",
day: 'dddd, d MMMM yyyy'
},
columnFormat: {
month: 'ddd',
week: 'ddd d',
day: ''
},
axisFormat: 'H:mm',
timeFormat: {
'': 'H:mm',
agenda: 'H:mm{ - H:mm}'
},
buttonText: {
prev: " ◄ ",
next: " ► ",
prevYear: " << ",
nextYear: " >> ",
today: "Hoje",
month: "Mês",
week: "Semana",
day: "Dia"
}
});