feat(ui): improve i18n

This commit is contained in:
Fu Diwei
2025-01-01 14:04:41 +08:00
parent 9c645a1efa
commit 7bd0cbce10
24 changed files with 347 additions and 601 deletions

View File

@@ -57,7 +57,7 @@ const DeployNodeFormLocalFields = () => {
.nullish()
.refine((v) => fieldFormat !== FORMAT_JKS || !!v?.trim(), { message: t("workflow_node.deploy.form.local_jks_storepass.tooltip") }),
shellEnv: z.union([z.literal(SHELLENV_SH), z.literal(SHELLENV_CMD), z.literal(SHELLENV_POWERSHELL)], {
message: t("domain.deployment.form.shell.placeholder"),
message: t("workflow_node.deploy.form.local_shell_env.placeholder"),
}),
preCommand: z
.string()

View File

@@ -6,6 +6,7 @@ import dayjs from "dayjs";
import { produce } from "immer";
import { z } from "zod";
import Show from "@/components/Show";
import { usePanel } from "../PanelProvider";
import { useAntdForm, useZustandShallowSelector } from "@/hooks";
import { type WorkflowNode, type WorkflowNodeConfig } from "@/domain/workflow";
@@ -106,7 +107,7 @@ const StartNodeForm = ({ data }: StartNodeFormProps) => {
rules={[formRule]}
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.start.form.trigger_cron.tooltip") }}></span>}
extra={
triggerCronLastExecutions.length > 0 ? (
<Show when={triggerCronLastExecutions.length > 0}>
<div>
{t("workflow_node.start.form.trigger_cron.extra")}
<br />
@@ -117,9 +118,7 @@ const StartNodeForm = ({ data }: StartNodeFormProps) => {
</span>
))}
</div>
) : (
<></>
)
</Show>
}
>
<Input placeholder={t("workflow_node.start.form.trigger_cron.placeholder")} onChange={(e) => handleTriggerCronChange(e.target.value)} />