Fix calendar not loading locale in prod

This commit is contained in:
rijkvanzanten
2021-06-26 21:52:46 -04:00
parent 5756954dd7
commit 76d471a602

View File

@@ -11,7 +11,8 @@ export async function getFullcalendarLocale(lang: string): Promise<LocaleInput>
try {
const mod = await importCalendarLocale(l);
locale = mod.default.default;
// There's a problem in how @fullcalendar/core exports the language to "fake" ESM
locale = mod.default.default || mod.default;
break;
} catch {
continue;