diff --git a/lib/util/i18n.js b/lib/util/i18n.js index 6f210c071..b17e001a6 100644 --- a/lib/util/i18n.js +++ b/lib/util/i18n.js @@ -97,8 +97,9 @@ async function loadOtpUiLocaleData(matchedLocale) { .filter((pkg) => pkg.startsWith('@opentripplanner')) .map(async (pkg) => { try { + const packagePath = pkg.replace('@opentripplanner/', '') const msgs = await import( - `../../node_modules/${pkg}/i18n/${matchedLocale}.yml` + `@opentripplanner/${packagePath}/i18n/${matchedLocale}.yml` ) if (msgs) return msgs.default } catch (ex) {