Good afternoon. I'm trying to use fullcalendar in web software, but I can not translate to Portuguese. I already imported the file pt-br.js and added a JS script, but without success. Can anyone help me?
Good afternoon. I'm trying to use fullcalendar in web software, but I can not translate to Portuguese. I already imported the file pt-br.js and added a JS script, but without success. Can anyone help me?
When you downloaded fullcalendar you probably had a folder called locale next to the files, in that folder it contains the languages. Make reference to the en-br.js file next to the fullcalendar reference.
Example:
<script src='fullcalendar/fullcalendar.js'></script>
<script src='fullcalendar/locale/pt-br.js'></script>
<script>
$(function() {
$('#calendar').fullCalendar({
lang: 'pt-br'
});
});
</script>