소스 검색

fix: respect the interface language specified by the user on the activation success screen (#5258)

kurokobo 10 달 전
부모
커밋
37c87164dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/activate/activateForm.tsx

+ 1 - 1
web/app/activate/activateForm.tsx

@@ -86,7 +86,7 @@ const ActivateForm = () => {
           timezone,
         },
       })
-      setLocaleOnClient(language.startsWith('en') ? 'en-US' : 'zh-Hans', false)
+      setLocaleOnClient(language, false)
       setShowSuccess(true)
     }
     catch {