From 08c83636199b8b231f15a6a5c31357a9e037e618 Mon Sep 17 00:00:00 2001 From: Chris Maurer Date: Fri, 1 Nov 2024 00:47:01 -0400 Subject: [PATCH] SAK-50525 Calendar promise may not have finished loading i18n data (#12993) --- .../frontend/packages/sakai-calendar/src/SakaiCalendar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webcomponents/tool/src/main/frontend/packages/sakai-calendar/src/SakaiCalendar.js b/webcomponents/tool/src/main/frontend/packages/sakai-calendar/src/SakaiCalendar.js index 4b7a5fb8d0ef..438d61f8b97f 100644 --- a/webcomponents/tool/src/main/frontend/packages/sakai-calendar/src/SakaiCalendar.js +++ b/webcomponents/tool/src/main/frontend/packages/sakai-calendar/src/SakaiCalendar.js @@ -131,7 +131,7 @@ export class SakaiCalendar extends LionCalendar { ${super.__renderNavigation()}
- ${this._i18n.today} + ${this._i18n?.today}
`; @@ -149,14 +149,14 @@ export class SakaiCalendar extends LionCalendar { ` : nothing} -
${this._i18n.pinned_sites_message}
+
${this._i18n?.pinned_sites_message}
${super.render()} ${this._daysEvents?.length > 0 ? html`
- ${this._i18n.events_for} ${new Date(this._daysEvents[0].start).toLocaleDateString(undefined, { dateStyle: "medium" })} + ${this._i18n?.events_for} ${new Date(this._daysEvents[0].start).toLocaleDateString(undefined, { dateStyle: "medium" })}
${this._daysEvents.map(e => html`