# Kapotte/Geen i18n in calendar plugin /upcoming-events route

**URL:** https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745
**Category:** Bug
**Tags:** events, fixed
**Created:** [26 juni 2024 om 08:22 UTC](https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745 "2024-06-26T08:22:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrissycpty](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@chrissycpty](https://meta.discourse.org/u/chrissycpty)
#### Post date: [26 juni 2024 om 08:22 UTC](https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745/1 "2024-06-26T08:22:15Z")

</div>

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](https://github.com/discourse/discourse-calendar/blob/main/assets/javascripts/discourse/initializers/discourse-calendar.js), the FullCalendar is initialized with the `buttonText` and `locale` options set (see line 144).

In [upcoming-events-calendar.js](https://github.com/discourse/discourse-calendar/blob/main/assets/javascripts/discourse/components/upcoming-events-calendar.js), these fields are not set - see line 61 and following, for example.

Can someone reproduce this?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [28 juli 2024 om 11:02 UTC](https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745/2 "2024-07-28T11:02:47Z")

</div>

I can reproduce:

 ![Screenshot_20240728_170643_Chrome](https://global.discourse-cdn.com/meta/original/4X/8/7/9/879a4c3819bbd1641018a2bce7a9701f0f77d533.jpeg)

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [30 juli 2024 om 07:22 UTC](https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745/4 "2024-07-30T07:22:54Z")

</div>

Hi @chrissycpty

Thanks for the catch! We have merged the fix:

[https://github.com/discourse/discourse-calendar/pull/590](https://github.com/discourse/discourse-calendar/pull/590)

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [1 augustus 2024 om 07:23 UTC](https://meta.discourse.org/t/broken-no-i18n-in-calendar-plugin-upcoming-events-route/313745/5 "2024-08-01T07:23:00Z")

</div>

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