Просмотр исходного кода

Consider browser language settings

Shun Miyazawa 3 лет назад
Родитель
Сommit
727e422bcd
1 измененных файлов с 1 добавлено и 1 удалено
  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 [isValidUserName, setValidUserName] = useState(true);
   const [isSubmittingDisabled, setSubmittingDisabled] = useState(false);
   const [isSubmittingDisabled, setSubmittingDisabled] = useState(false);
-  const [currentLocale, setCurrentLocale] = useState('en_US');
+  const [currentLocale, setCurrentLocale] = useState(i18n.language);
 
 
   const checkUserName = useCallback(async(event) => {
   const checkUserName = useCallback(async(event) => {
     const axios = require('axios').create({
     const axios = require('axios').create({