refactor(ui): improve i18n

This commit is contained in:
Fu Diwei
2024-12-10 16:37:24 +08:00
parent a4eff0b408
commit 8fe0d342aa
76 changed files with 214 additions and 266 deletions

View File

@@ -39,11 +39,11 @@ const CertificateDetail = ({ data }: CertificateDetailProps) => {
<Form.Item>
<div className="flex items-center justify-between w-full mb-2">
<label className="font-medium">{t("certificate.props.certificate_chain")}</label>
<Tooltip title={t("common.copy")}>
<Tooltip title={t("common.button.copy")}>
<CopyToClipboard
text={data.certificate}
onCopy={() => {
messageApi.success(t("common.copy.done"));
messageApi.success(t("common.text.copied"));
}}
>
<Button type="text" icon={<ClipboardIcon size={14} />}></Button>
@@ -56,11 +56,11 @@ const CertificateDetail = ({ data }: CertificateDetailProps) => {
<Form.Item>
<div className="flex items-center justify-between w-full mb-2">
<label className="font-medium">{t("certificate.props.private_key")}</label>
<Tooltip title={t("common.copy")}>
<Tooltip title={t("common.button.copy")}>
<CopyToClipboard
text={data.privateKey}
onCopy={() => {
messageApi.success(t("common.copy.done"));
messageApi.success(t("common.text.copied"));
}}
>
<Button type="text" icon={<ClipboardIcon size={14} />}></Button>

View File

@@ -184,7 +184,7 @@ const AccessAliyunForm = ({ data, op, onAfterReq }: AccessAliyunFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -227,7 +227,7 @@ const AccessAwsForm = ({ data, op, onAfterReq }: AccessAwsFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -183,7 +183,7 @@ const AccessBaiduCloudForm = ({ data, op, onAfterReq }: AccessBaiduCloudFormProp
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -183,7 +183,7 @@ const AccessByteplusForm = ({ data, op, onAfterReq }: AccessByteplusFormProps) =
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -157,7 +157,7 @@ const AccessCloudflareForm = ({ data, op, onAfterReq }: AccessCloudflareFormProp
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -177,7 +177,7 @@ const AccessDogeCloudForm = ({ data, op, onAfterReq }: AccessDogeCloudFormProps)
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -179,7 +179,7 @@ const AccessGodaddyForm = ({ data, op, onAfterReq }: AccessGodaddyFormProps) =>
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -222,7 +222,7 @@ const AccessHttpreqForm = ({ data, op, onAfterReq }: AccessHttpreqFormProps) =>
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -205,7 +205,7 @@ const AccessHuaweiCloudForm = ({ data, op, onAfterReq }: AccessHuaweiCloudFormPr
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -182,7 +182,7 @@ const AccessKubernetesForm = ({ data, op, onAfterReq }: AccessKubernetesFormProp
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -136,7 +136,7 @@ const AccessLocalForm = ({ data, op, onAfterReq }: AccessLocalFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -157,7 +157,7 @@ const AccessNamesiloForm = ({ data, op, onAfterReq }: AccessNamesiloFormProps) =
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -181,7 +181,7 @@ const AccessPdnsForm = ({ data, op, onAfterReq }: AccessPdnsFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -177,7 +177,7 @@ const AccessQiniuForm = ({ data, op, onAfterReq }: AccessQiniuFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -337,7 +337,7 @@ const AccessSSHForm = ({ data, op, onAfterReq }: AccessSSHFormProps) => {
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -179,7 +179,7 @@ const AccessTencentForm = ({ data, op, onAfterReq }: AccessTencentFormProps) =>
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -183,7 +183,7 @@ const AccessVolcengineForm = ({ data, op, onAfterReq }: AccessVolcengineFormProp
<FormMessage />
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -154,7 +154,7 @@ const AccessWebhookForm = ({ data, op, onAfterReq }: AccessWebhookFormProps) =>
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -115,7 +115,7 @@ const EmailsEdit = ({ className, trigger }: EmailsEditProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -75,7 +75,7 @@ const KVList = ({ variables, onValueChange }: KVListProps) => {
<div className="flex items-center text-primary">
<Plus size={16} className="cursor-pointer " />
<div className="text-sm ">{t("common.add")}</div>
<div className="text-sm ">{t("common.button.add")}</div>
</div>
}
onSave={(variable) => {
@@ -96,7 +96,7 @@ const KVList = ({ variables, onValueChange }: KVListProps) => {
<div className="flex items-center text-primary">
<Plus size={16} className="cursor-pointer " />
<div className="text-sm ">{t("common.add")}</div>
<div className="text-sm ">{t("common.button.add")}</div>
</div>
}
variable={{
@@ -231,7 +231,7 @@ const KVEdit = ({ variable, trigger, onSave }: KVEditProps) => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</div>
</DialogFooter>

View File

@@ -79,7 +79,7 @@ const StringList = ({ value, className, onValueChange, valueType = "domain" }: S
<div className="flex items-center text-primary">
<Plus size={16} className="cursor-pointer " />
<div className="text-sm ">{t("common.add")}</div>
<div className="text-sm ">{t("common.button.add")}</div>
</div>
}
/>
@@ -92,7 +92,7 @@ const StringList = ({ value, className, onValueChange, valueType = "domain" }: S
<div className="border rounded-md p-3 text-sm flex flex-col items-center">
<div className="text-muted-foreground">{t("common.text." + valueType + ".empty")}</div>
<StringEdit value={""} trigger={t("common.add")} onValueChange={addVal} valueType={valueType} />
<StringEdit value={""} trigger={t("common.button.add")} onValueChange={addVal} valueType={valueType} />
</div>
}
>
@@ -208,7 +208,7 @@ const StringEdit = ({ trigger, value, onValueChange, op = "add", valueType }: St
onSaveClick();
}}
>
{op === "add" ? t("common.add") : t("common.confirm")}
{op === "add" ? t("common.button.add") : t("common.button.ok")}
</Button>
</DialogFooter>
</DialogContent>

View File

@@ -109,14 +109,14 @@ const Bark = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -176,7 +176,7 @@ const Bark = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -238,7 +238,7 @@ const Bark = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -109,14 +109,14 @@ const DingTalk = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -176,7 +176,7 @@ const DingTalk = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -236,7 +236,7 @@ const DingTalk = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -132,14 +132,14 @@ const Mail = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -199,7 +199,7 @@ const Mail = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -360,7 +360,7 @@ const Mail = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -105,14 +105,14 @@ const Lark = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -172,7 +172,7 @@ const Lark = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -214,7 +214,7 @@ const Lark = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -63,7 +63,7 @@ const NotifyTemplate = () => {
}
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.template.saved.message"),
});
};
@@ -88,7 +88,7 @@ const NotifyTemplate = () => {
></Textarea>
<div className="text-muted-foreground text-sm mt-1">{t("settings.notification.template.variables.tips.content")}</div>
<div className="flex justify-end mt-2">
<Button onClick={handleSaveClick}>{t("common.save")}</Button>
<Button onClick={handleSaveClick}>{t("common.button.save")}</Button>
</div>
</div>
);

View File

@@ -96,7 +96,7 @@ const ServerChan = () => {
serverchan.data.url = serverchan.data.url.trim();
if (!isValidURL(serverchan.data.url)) {
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: t("common.errmsg.url_invalid"),
variant: "destructive",
});
@@ -116,14 +116,14 @@ const ServerChan = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -183,7 +183,7 @@ const ServerChan = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -225,7 +225,7 @@ const ServerChan = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -109,14 +109,14 @@ const Telegram = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -176,7 +176,7 @@ const Telegram = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -238,7 +238,7 @@ const Telegram = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -96,7 +96,7 @@ const Webhook = () => {
webhook.data.url = webhook.data.url.trim();
if (!isValidURL(webhook.data.url)) {
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: t("common.errmsg.url_invalid"),
variant: "destructive",
});
@@ -116,14 +116,14 @@ const Webhook = () => {
setChannels(resp);
toast({
title: t("common.save.succeeded.message"),
title: t("common.text.operation_succeeded"),
description: t("settings.notification.config.saved.message"),
});
} catch (e) {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -183,7 +183,7 @@ const Webhook = () => {
const msg = getErrMsg(e);
toast({
title: t("common.save.failed.message"),
title: t("common.text.operation_failed"),
description: `${t("settings.notification.config.failed.message")}: ${msg}`,
variant: "destructive",
});
@@ -225,7 +225,7 @@ const Webhook = () => {
handleSaveClick();
}}
>
{t("common.save")}
{t("common.button.save")}
</Button>
</Show>

View File

@@ -122,7 +122,7 @@ const ApplyForm = ({ data }: ApplyFormProps) => {
trigger={
<div className="flex items-center font-normal cursor-pointer text-primary hover:underline">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
/>
@@ -168,7 +168,7 @@ const ApplyForm = ({ data }: ApplyFormProps) => {
trigger={
<div className="flex items-center font-normal cursor-pointer text-primary hover:underline">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -342,7 +342,7 @@ const ApplyForm = ({ data }: ApplyFormProps) => {
</div>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -110,7 +110,7 @@ const DeployToAliyunALB = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -251,7 +251,7 @@ const DeployToAliyunALB = ({ data }: DeployFormProps) => {
)}
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToAliyunCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToAliyunCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -110,7 +110,7 @@ const DeployToAliyunCLB = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -251,7 +251,7 @@ const DeployToAliyunCLB = ({ data }: DeployFormProps) => {
)}
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -213,7 +213,7 @@ const DeployToAliyunNLB = ({ data }: DeployFormProps) => {
)}
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -101,7 +101,7 @@ const DeployToAliyunOSS = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -209,7 +209,7 @@ const DeployToAliyunOSS = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToBaiduCloudCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToBaiduCloudCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToByteplusCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToByteplusCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -91,7 +91,7 @@ const DeployToDogeCloudCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToDogeCloudCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -96,7 +96,7 @@ const DeployToHuaweiCloudCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -191,7 +191,7 @@ const DeployToHuaweiCloudCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -118,7 +118,7 @@ const DeployToHuaweiCloudELB = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -282,7 +282,7 @@ const DeployToHuaweiCloudELB = ({ data }: DeployFormProps) => {
)}
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -105,7 +105,7 @@ const DeployToKubernetesSecret = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -226,7 +226,7 @@ const DeployToKubernetesSecret = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -215,7 +215,7 @@ Remove-Item -Path "$pfxPath" -Force
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -462,7 +462,7 @@ Remove-Item -Path "$pfxPath" -Force
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -91,7 +91,7 @@ const DeployToQiniuCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -171,7 +171,7 @@ const DeployToQiniuCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -133,7 +133,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -339,7 +339,7 @@ const DeployToSSH = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToTencentCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToTencentCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -130,7 +130,7 @@ const DeployToTencentCLB = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -310,7 +310,7 @@ const DeployToTencentCLB = ({ data }: DeployFormProps) => {
)}
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -96,7 +96,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -206,7 +206,7 @@ const DeployToTencentCOS = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -93,7 +93,7 @@ const DeployToTencentTEO = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -188,7 +188,7 @@ const DeployToTencentTEO = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToVolcengineCDN = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToVolcengineCDN = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -90,7 +90,7 @@ const DeployToVolcengineLive = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -170,7 +170,7 @@ const DeployToVolcengineLive = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -94,7 +94,7 @@ const DeployToWebhook = ({ data }: DeployFormProps) => {
trigger={
<div className="font-normal text-primary hover:underline cursor-pointer flex items-center">
<Plus size={14} />
{t("common.add")}
{t("common.button.add")}
</div>
}
op="add"
@@ -174,7 +174,7 @@ const DeployToWebhook = ({ data }: DeployFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -171,7 +171,7 @@ const NotifyForm = ({ data }: NotifyFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -135,7 +135,7 @@ const StartForm = ({ data }: StartFormProps) => {
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>

View File

@@ -115,7 +115,7 @@ const WorkflowNameBaseInfoDialog = ({ trigger }: WorkflowNameEditDialogProps) =>
/>
<div className="flex justify-end">
<Button type="submit">{t("common.save")}</Button>
<Button type="submit">{t("common.button.save")}</Button>
</div>
</form>
</Form>