From da043837720eb3101181489e13ad3e4a5225cd76 Mon Sep 17 00:00:00 2001 From: idawnwon <69025059+idawnwon@users.noreply.github.com> Date: Mon, 10 Apr 2023 21:29:03 +0800 Subject: [PATCH] fix: default return in `useLanguange()` hook (#1352) if `setLocale('zh-CN')`, `return` should be `zhCN`, not `enUS`. --- src/hooks/useLanguage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useLanguage.ts b/src/hooks/useLanguage.ts index f015142..e48bea8 100644 --- a/src/hooks/useLanguage.ts +++ b/src/hooks/useLanguage.ts @@ -19,7 +19,7 @@ export function useLanguage() { return zhTW default: setLocale('zh-CN') - return enUS + return zhCN } })