Bladeren bron

revert supported lang detection

Yuki Takei 1 jaar geleden
bovenliggende
commit
7ef9a2ac18
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      apps/app/src/client/components/InstallerForm.tsx

+ 1 - 1
apps/app/src/client/components/InstallerForm.tsx

@@ -32,7 +32,7 @@ const InstallerForm = memo((props: Props): JSX.Element => {
 
 
   const tWithOpt = useTWithOpt();
   const tWithOpt = useTWithOpt();
 
 
-  const isSupportedLang = AllLang.includes(i18n.language);
+  const isSupportedLang = AllLang.includes(i18n.language as Lang);
 
 
   const [isLoading, setIsLoading] = useState(false);
   const [isLoading, setIsLoading] = useState(false);
   const [currentLocale, setCurrentLocale] = useState(isSupportedLang ? i18n.language : Lang.en_US);
   const [currentLocale, setCurrentLocale] = useState(isSupportedLang ? i18n.language : Lang.en_US);