Skip to content

Commit

Permalink
fix: fix settings.loadLocale (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Feb 1, 2023
1 parent 3da9754 commit 753668b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 753668b

Please sign in to comment.