diff --git a/web/src/components/AboutSiteDialog.tsx b/web/src/components/AboutSiteDialog.tsx index d7a0b9ef..fa4ed6ed 100644 --- a/web/src/components/AboutSiteDialog.tsx +++ b/web/src/components/AboutSiteDialog.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from "react"; import * as api from "../helpers/api"; +import useI18n from "../hooks/useI18n"; import Only from "./common/OnlyWhen"; import Icon from "./Icon"; import { generateDialog } from "./Dialog"; @@ -10,6 +11,7 @@ interface Props extends DialogProps {} const AboutSiteDialog: React.FC = ({ destroy }: Props) => { const [profile, setProfile] = useState(); + const { t, setLocale } = useI18n(); useEffect(() => { try { @@ -25,6 +27,10 @@ const AboutSiteDialog: React.FC = ({ destroy }: Props) => { version: "0.0.0", }); } + + setTimeout(() => { + setLocale("zh"); + }, 2333); }, []); const handleCloseBtnClick = () => { @@ -35,7 +41,8 @@ const AboutSiteDialog: React.FC = ({ destroy }: Props) => { <>

- 🤠About Memos + 🤠 + {t("about")} Memos