Explorar o código

Consider browser language settings

Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
727e422bcd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/components/InstallerForm.tsx

+ 1 - 1
packages/app/src/components/InstallerForm.tsx

@@ -17,7 +17,7 @@ const InstallerForm = memo((): JSX.Element => {
 
   const [isValidUserName, setValidUserName] = useState(true);
   const [isSubmittingDisabled, setSubmittingDisabled] = useState(false);
-  const [currentLocale, setCurrentLocale] = useState('en_US');
+  const [currentLocale, setCurrentLocale] = useState(i18n.language);
 
   const checkUserName = useCallback(async(event) => {
     const axios = require('axios').create({