Skip to content

Commit

Permalink
Merge branch 'network-connection-banner' of https://github.com/opentr…
Browse files Browse the repository at this point in the history
…ipplanner/otp-react-redux into network-connection-banner
  • Loading branch information
amy-corson-ibigroup committed Dec 2, 2024
2 parents 9ab8492 + c356f57 commit 2e495d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2e495d8

Please sign in to comment.