Skip to content

Commit

Permalink
Revert "fix: lazy load i18n files (#2193)" (#2219)
Browse files Browse the repository at this point in the history
This reverts commit 41c910c.
  • Loading branch information
kazupon committed Jul 10, 2023
1 parent 6a110af commit 8d65ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export async function loadInitialMessages<Context extends NuxtApp = NuxtApp>(
await Promise.all(fallbackLocales.map(locale => loadLocale(context, locale, setter)))
}
// load initial messages
const locales = lazy ? localeCodes : [...new Set<Locale>().add(defaultLocale).add(initialLocale)]
const locales = lazy ? [...new Set<Locale>().add(defaultLocale).add(initialLocale)] : localeCodes
await Promise.all(locales.map(locale => loadLocale(context, locale, setter)))
}

Expand Down

0 comments on commit 8d65ac4

Please sign in to comment.