fix(app): add english to locale matchers (#16280)

This commit is contained in:
Kirill Tregubov
2026-03-06 06:47:39 -05:00
committed by GitHub
parent eb9eb5e334
commit f64bb91257
3 changed files with 4 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ function detectLocale(): Locale {
const languages = navigator.languages?.length ? navigator.languages : [navigator.language]
for (const language of languages) {
if (!language) continue
if (language.toLowerCase().startsWith("en")) return "en"
if (language.toLowerCase().startsWith("zh")) {
if (language.toLowerCase().includes("hant")) return "zht"
return "zh"