Skip to content

Commit

Permalink
fix(open-scd): import locales from relative URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-d committed Feb 10, 2023
1 parent ca5f016 commit 6c8172e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open-scd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ type LocaleTag = typeof allLocales[number];
const { getLocale, setLocale } = configureLocalization({
sourceLocale,
targetLocales,
loadLocale: locale => import(`./locales/${locale}.js`),
loadLocale: locale =>
import(new URL(`locales/${locale}.js`, import.meta.url).href),
});

function describe({ undo, redo }: LogEntry) {
Expand Down

0 comments on commit 6c8172e

Please sign in to comment.