I couldn’t translate the Fullcalendar plugin to en. Can anyone help me?

Asked

Viewed 686 times

0

good afternoon. I want to use fullcalendar in web software, but I’m not able to translate into Portuguese. I already imported the en.js file and added a JS script, but no success. Can anyone help me?

  • 1

    Check it out: https://fullcalendar.io/docs/locale

1 answer

1

When you downloaded the fullcalendar you probably had a folder called locale next to the files, in this folder contains the languages. Make the file reference en.js next to 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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.