diff --git a/index.html b/index.html index 8195f18..1228873 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,16 @@ - + + - Pineer + Pioneer
diff --git a/src/App.tsx b/src/App.tsx index 0a4becd..5bcf1e0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,17 +1,23 @@ +/* + * @LastEditors: John + * @Date: 2024-05-22 18:06:14 + * @LastEditTime: 2024-05-22 18:45:10 + * @Author: John + */ import "./App.css"; import { useEffect } from "react"; -import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; +import { HashRouter as Router, Route, Routes } from "react-router-dom"; import SignIn from "./pages/SignIn"; import Download from "./pages/Download"; import SelectCountry from "./pages/SelectCountry"; import { useTranslation } from "react-i18next"; function App() { - const {i18n} = useTranslation() - const lang:string = navigator.language.split('-')[1].toLocaleLowerCase() - useEffect(()=>{ - i18n.changeLanguage('en') - },[ i18n,lang]) + const { i18n } = useTranslation(); + const lang: string = navigator.language.split("-")[1].toLocaleLowerCase(); + useEffect(() => { + i18n.changeLanguage("en"); + }, [i18n, lang]); return (