From f64bb91257c6381e6c2fbd099ca36ef726c46704 Mon Sep 17 00:00:00 2001 From: Kirill Tregubov Date: Fri, 6 Mar 2026 06:47:39 -0500 Subject: fix(app): add english to locale matchers (#16280) --- packages/app/src/context/language.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/app/src/context') diff --git a/packages/app/src/context/language.tsx b/packages/app/src/context/language.tsx index be1a1769b..b1edd541c 100644 --- a/packages/app/src/context/language.tsx +++ b/packages/app/src/context/language.tsx @@ -146,6 +146,7 @@ const DICT: Record = { } const localeMatchers: Array<{ locale: Locale; match: (language: string) => boolean }> = [ + { locale: "en", match: (language) => language.startsWith("en") }, { locale: "zht", match: (language) => language.startsWith("zh") && language.includes("hant") }, { locale: "zh", match: (language) => language.startsWith("zh") }, { locale: "ko", match: (language) => language.startsWith("ko") }, @@ -217,6 +218,7 @@ export const { use: useLanguage, provider: LanguageProvider } = createSimpleCont ) const locale = createMemo(() => normalizeLocale(store.locale)) + console.log("locale", locale()) const intl = createMemo(() => INTL[locale()]) const dict = createMemo(() => DICT[locale()]) -- cgit v1.2.3