chore: Add Translation

This commit is contained in:
MystiPanda
2024-02-21 11:06:32 +08:00
parent a68005d4ab
commit 096c148228
3 changed files with 24 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import { useTranslation } from "react-i18next";
import { Button, ButtonGroup, Tooltip } from "@mui/material";
import { checkService } from "@/services/cmds";
import { useVerge } from "@/hooks/use-verge";
@@ -25,11 +26,13 @@ export const StackModeSwitch = (props: Props) => {
}
);
const { t } = useTranslation();
return (
<Tooltip
title={
isWIN && (serviceStatus !== "active" || !enable_service_mode)
? "System and Mixed modes must be used in service mode"
? t("System and Mixed Can Only be Used in Service Mode")
: ""
}
>