캘린더 플러그인의 /upcoming-events 경로에서 i18n 오류/누락

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개의 좋아요

I can reproduce:

Hi @chrissycpty

Thanks for the catch! We have merged the fix:

https://github.com/discourse/discourse-calendar/pull/590

4개의 좋아요

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