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 Rakers1024 committed Apr 14, 2023
1 parent 527c861 commit d09b7a7
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 d09b7a7

Please sign in to comment.