fix: default return in `useLanguange()` hook (#1352)

if `setLocale('zh-CN')`, `return` should be `zhCN`, not `enUS`.
This commit is contained in:
idawnwon 2023-04-10 21:29:03 +08:00 committed by GitHub
parent 527c8613b2
commit da04383772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export function useLanguage() {
return zhTW
default:
setLocale('zh-CN')
return enUS
return zhCN
}
})