From 8d65ac47760fd891248794d5de6586c83b419665 Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Mon, 10 Jul 2023 16:36:50 +0900 Subject: [PATCH] Revert "fix: lazy load i18n files (#2193)" (#2219) This reverts commit 41c910ced70257029ace5dedcb7b4be4131d26fb. --- src/runtime/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/utils.ts b/src/runtime/utils.ts index 971d27fd1..ec55a9d09 100644 --- a/src/runtime/utils.ts +++ b/src/runtime/utils.ts @@ -122,7 +122,7 @@ export async function loadInitialMessages( await Promise.all(fallbackLocales.map(locale => loadLocale(context, locale, setter))) } // load initial messages - const locales = lazy ? localeCodes : [...new Set().add(defaultLocale).add(initialLocale)] + const locales = lazy ? [...new Set().add(defaultLocale).add(initialLocale)] : localeCodes await Promise.all(locales.map(locale => loadLocale(context, locale, setter))) }