Skip to content

Commit

Permalink
fix: default return in useLanguange() hook (Chanzhaoyu#1352)
Browse files Browse the repository at this point in the history
if `setLocale('zh-CN')`, `return` should be `zhCN`, not `enUS`.
  • Loading branch information
idawnwon authored and HalfCoke committed Jul 6, 2023
1 parent 58b7fcb commit ee2f88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function useLanguage() {
return zhTW
default:
setLocale('zh-CN')
return enUS
return zhCN
}
})

Expand Down

0 comments on commit ee2f88c

Please sign in to comment.