mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-15 08:59:51 +00:00
feat: improve i18n
This commit is contained in:
parent
7a66bdf139
commit
52d24ff2f2
@ -13,7 +13,9 @@
|
|||||||
"workflow.props.name.default": "Unnamed",
|
"workflow.props.name.default": "Unnamed",
|
||||||
"workflow.props.description": "Description",
|
"workflow.props.description": "Description",
|
||||||
"workflow.props.description.placeholder": "Please enter description",
|
"workflow.props.description.placeholder": "Please enter description",
|
||||||
"workflow.props.execution_method": "Execution Method",
|
"workflow.props.trigger": "Trigger",
|
||||||
|
"workflow.props.trigger.auto": "Auto",
|
||||||
|
"workflow.props.trigger.manual": "Manual",
|
||||||
"workflow.props.state": "State",
|
"workflow.props.state": "State",
|
||||||
"workflow.props.state.filter.enabled": "Enabled",
|
"workflow.props.state.filter.enabled": "Enabled",
|
||||||
"workflow.props.state.filter.disabled": "Disabled",
|
"workflow.props.state.filter.disabled": "Disabled",
|
||||||
|
@ -13,7 +13,9 @@
|
|||||||
"workflow.props.name.default": "未命名工作流",
|
"workflow.props.name.default": "未命名工作流",
|
||||||
"workflow.props.description": "描述",
|
"workflow.props.description": "描述",
|
||||||
"workflow.props.description.placeholder": "请输入描述",
|
"workflow.props.description.placeholder": "请输入描述",
|
||||||
"workflow.props.execution_method": "执行方式",
|
"workflow.props.trigger": "触发方式",
|
||||||
|
"workflow.props.trigger.auto": "自动",
|
||||||
|
"workflow.props.trigger.manual": "手动",
|
||||||
"workflow.props.state": "启用状态",
|
"workflow.props.state": "启用状态",
|
||||||
"workflow.props.state.filter.enabled": "启用",
|
"workflow.props.state.filter.enabled": "启用",
|
||||||
"workflow.props.state.filter.disabled": "未启用",
|
"workflow.props.state.filter.disabled": "未启用",
|
||||||
|
@ -61,19 +61,19 @@ const WorkflowList = () => {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "type",
|
key: "trigger",
|
||||||
title: t("workflow.props.execution_method"),
|
title: t("workflow.props.trigger"),
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
const method = record.type;
|
const trigger = record.type;
|
||||||
if (!method) {
|
if (!trigger) {
|
||||||
return "-";
|
return "-";
|
||||||
} else if (method === "manual") {
|
} else if (trigger === "manual") {
|
||||||
return <Typography.Text>{t("workflow.node.start.form.executionMethod.options.manual")}</Typography.Text>;
|
return <Typography.Text>{t("workflow.props.trigger.manual")}</Typography.Text>;
|
||||||
} else if (method === "auto") {
|
} else if (trigger === "auto") {
|
||||||
return (
|
return (
|
||||||
<Space className="max-w-full" direction="vertical" size={4}>
|
<Space className="max-w-full" direction="vertical" size={4}>
|
||||||
<Typography.Text>{t("workflow.node.start.form.executionMethod.options.auto")}</Typography.Text>
|
<Typography.Text>{t("workflow.props.trigger.auto")}</Typography.Text>
|
||||||
<Typography.Text type="secondary">{record.crontab ?? ""}</Typography.Text>
|
<Typography.Text type="secondary">{record.crontab ?? ""}</Typography.Text>
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user