Broken/No i18n in calendar plugin /upcoming-events route

The calendar displayed in the /upcoming-events route created by the discourse-calendar plugin doesn’t seem to pull in the i18n translations for the FullCalendar buttons. The calendar always displays FullCalendar’s defaults, such as “today” for the according button.

My assumption for why this happens (without having looked into discourse or its plugins too deeply before, so take this with a grain of salt):

When looking at discourse-calendar.js, the FullCalendar is initialized with the buttonText and locale options set (see line 144).

In upcoming-events-calendar.js, these fields are not set - see line 61 and following, for example.

Can someone reproduce this?

3 Likes

I can reproduce:

Hi @chrissycpty

Thanks for the catch! We have merged the fix:

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.