workflow multi languages

This commit is contained in:
yoan
2024-11-11 15:50:36 +08:00
parent 327c83cbc8
commit 1ea0ba18cd
32 changed files with 312 additions and 152 deletions

View File

@@ -59,7 +59,7 @@ const DeployToDogeCloudCDN = ({ data }: DeployFormProps) => {
});
const onSubmit = async (config: z.infer<typeof formSchema>) => {
updateNode({ ...data, config: { ...config } });
updateNode({ ...data, config: { ...config }, validated: true });
hidePanel();
};
@@ -78,7 +78,7 @@ const DeployToDogeCloudCDN = ({ data }: DeployFormProps) => {
name="certificate"
render={({ field }) => (
<FormItem>
<FormLabel></FormLabel>
<FormLabel>{t("workflow.common.certificate.label")}</FormLabel>
<FormControl>
<Select
{...field}
@@ -88,7 +88,7 @@ const DeployToDogeCloudCDN = ({ data }: DeployFormProps) => {
}}
>
<SelectTrigger>
<SelectValue placeholder="选择证书来源" />
<SelectValue placeholder={t("workflow.common.certificate.placeholder")} />
</SelectTrigger>
<SelectContent>
{beforeOutput.map((item) => (