Explorar o código

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

kurokobo hai 10 meses
pai
achega
37c87164dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {