mirror of
https://github.com/directus/directus.git
synced 2026-01-24 03:17:56 -05:00
Fix calendar not loading locale in prod
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user