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

@@ -114,7 +114,7 @@ const DeployToLocal = ({ data }: DeployFormProps) => {
}, [format]);
const onSubmit = async (config: z.infer<typeof formSchema>) => {
updateNode({ ...data, config });
updateNode({ ...data, config, validated: true });
hidePanel();
};
@@ -203,7 +203,7 @@ Remove-Item -Path "$pfxPath" -Force
name="certificate"
render={({ field }) => (
<FormItem>
<FormLabel></FormLabel>
<FormLabel>{t("workflow.common.certificate.label")}</FormLabel>
<FormControl>
<Select
{...field}
@@ -213,7 +213,7 @@ Remove-Item -Path "$pfxPath" -Force
}}
>
<SelectTrigger>
<SelectValue placeholder="选择证书来源" />
<SelectValue placeholder={t("workflow.common.certificate.placeholder")} />
</SelectTrigger>
<SelectContent>
{beforeOutput.map((item) => (