Skip to content

Commit

Permalink
fix: default return in useLanguange() hook (#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 Apr 10, 2023
1 parent 527c861 commit da04383
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 da04383

Please sign in to comment.