fix: default return in `useLanguange()` hook (#1352)
if `setLocale('zh-CN')`, `return` should be `zhCN`, not `enUS`.
This commit is contained in:
parent
527c8613b2
commit
da04383772
|
@ -19,7 +19,7 @@ export function useLanguage() {
|
|||
return zhTW
|
||||
default:
|
||||
setLocale('zh-CN')
|
||||
return enUS
|
||||
return zhCN
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue