From 4692c05617db751f6a77ce36948b49acd79b4645 Mon Sep 17 00:00:00 2001 From: Lionell Briones Date: Tue, 3 Oct 2023 11:48:24 +0800 Subject: [PATCH] fix: en not loaded when browser lang is set --- src/plugins/i18nPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/i18nPlugin.ts b/src/plugins/i18nPlugin.ts index 6663d552..d2aac9ac 100644 --- a/src/plugins/i18nPlugin.ts +++ b/src/plugins/i18nPlugin.ts @@ -65,5 +65,5 @@ export const setLocale = async (i18n: I18n, lang: string) => { setI18nLanguage(i18n, finalLang); }; -export const i18n = setupI18n(); +export const i18n = setupI18n(localeTarget); loadLocaleMessages(i18n, localeTarget);