I could not translate the FullCalendar plugin to pt-br. Can someone help me?

0

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?

    
asked by anonymous 01.10.2018 / 22:09

1 answer

0

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>
    
02.10.2018 / 13:38