chore: tooltips and locales

This commit is contained in:
dongchengjie
2024-06-26 05:33:06 +08:00
parent 04be747d52
commit 753395965a
21 changed files with 108 additions and 32 deletions

View File

@@ -94,7 +94,7 @@ export const ProviderButton = () => {
}
contentSx={{ width: 400 }}
disableOk
cancelBtn={t("Cancel")}
cancelBtn={t("Close")}
onClose={() => setOpen(false)}
onCancel={() => setOpen(false)}
>

View File

@@ -14,12 +14,14 @@ import { BaseEmpty } from "../base";
import { useRenderList } from "./use-render-list";
import { ProxyRender } from "./proxy-render";
import delayManager from "@/services/delay";
import { useTranslation } from "react-i18next";
interface Props {
mode: string;
}
export const ProxyGroups = (props: Props) => {
const { t } = useTranslation();
const { mode } = props;
const { renderList, onProxies, onHeadState } = useRenderList(mode);
@@ -116,7 +118,7 @@ export const ProxyGroups = (props: Props) => {
};
if (mode === "direct") {
return <BaseEmpty text="Direct Mode" />;
return <BaseEmpty text={t("clash_mode_direct")} />;
}
return (