fix(i18n): 修复非支持地区输出null,导致的显示问题

This commit is contained in:
Aqr-K
2025-05-20 19:14:31 +08:00
committed by GitHub
parent f79cc41f3c
commit 1c5e410881
+1 -1
View File
@@ -39,7 +39,7 @@ export function getBrowserLocale(): SupportedLocale | null {
return navigatorLocale.includes(locale.split('-')[0])
})
return (locale as SupportedLocale) || null
return (locale as SupportedLocale) || zh-CN
}
/**