diff --git a/src/settings/settings.ts b/src/settings/settings.ts index d3c421b..ba3680e 100644 --- a/src/settings/settings.ts +++ b/src/settings/settings.ts @@ -14,7 +14,7 @@ class Settings { try { const localeInLowerCase = locale.toLocaleLowerCase(); // https://github.com/iamkun/dayjs/issues/792#issuecomment-639961997 - await import(`dayjs/locale/${localeInLowerCase}.js`); + await require(`dayjs/locale/${localeInLowerCase}.js`); this.loadedLocales.add(localeInLowerCase); } catch (error) { throw new Error(