mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix(i18n): 修复非支持地区输出null,导致的显示问题
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user