From 05adbab59193df7dac0ded69a20bf37a4b2d3de4 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 11 Sep 2025 16:27:47 +0800 Subject: [PATCH] chore(ui): improve i18n --- ui/src/i18n/locales/en/nls.dashboard.json | 2 +- ui/src/i18n/locales/en/nls.workflow.nodes.json | 2 +- ui/src/i18n/locales/zh/nls.certificate.json | 2 +- ui/src/i18n/locales/zh/nls.dashboard.json | 2 +- ui/src/i18n/locales/zh/nls.workflow.nodes.json | 2 +- ui/src/pages/certificates/CertificateList.tsx | 2 +- ui/src/pages/dashboard/Dashboard.tsx | 2 +- ui/src/pages/settings/SettingsAbout.tsx | 2 +- ui/src/pages/workflows/WorkflowNew.tsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/i18n/locales/en/nls.dashboard.json b/ui/src/i18n/locales/en/nls.dashboard.json index 63388924..ad8273ad 100644 --- a/ui/src/i18n/locales/en/nls.dashboard.json +++ b/ui/src/i18n/locales/en/nls.dashboard.json @@ -2,7 +2,7 @@ "dashboard.page.title": "Dashboard", "dashboard.statistics.all_certificates": "All certificates", - "dashboard.statistics.expire_soon_certificates": "Expiring soon certificates", + "dashboard.statistics.expiring_soon_certificates": "Expiring soon certificates", "dashboard.statistics.expired_certificates": "Expired certificates", "dashboard.statistics.all_workflows": "All workflows", "dashboard.statistics.enabled_workflows": "Active workflows", diff --git a/ui/src/i18n/locales/en/nls.workflow.nodes.json b/ui/src/i18n/locales/en/nls.workflow.nodes.json index 4046b312..d29fe6fc 100644 --- a/ui/src/i18n/locales/en/nls.workflow.nodes.json +++ b/ui/src/i18n/locales/en/nls.workflow.nodes.json @@ -1105,7 +1105,7 @@ "workflow_node.condition.label": "Parallel/Conditional branch", "workflow_node.condition.help": "When the specified conditions are met, enter the corresponding branch. The failure of a node in a certain branch does not affect the continuation of parallel branch execution.", "workflow_node.condition.default_name": "Parallel", - "workflow_node.condition.default_name.template_certtest_on_expire_soon": "If the certificate will be expiring soon ...", + "workflow_node.condition.default_name.template_certtest_on_expiring_soon": "If the certificate will be expiring soon ...", "workflow_node.condition.default_name.template_certtest_on_expired": "If the certificate has expired ...", "workflow_node.branch_block.label": "Branch", "workflow_node.branch_block.default_name": "Branch", diff --git a/ui/src/i18n/locales/zh/nls.certificate.json b/ui/src/i18n/locales/zh/nls.certificate.json index 52ac3a91..63c7073b 100644 --- a/ui/src/i18n/locales/zh/nls.certificate.json +++ b/ui/src/i18n/locales/zh/nls.certificate.json @@ -22,7 +22,7 @@ "certificate.props.validity.expired": "已过期", "certificate.props.validity.expiration": "{{date}} 过期", "certificate.props.validity.filter.all": "全部", - "certificate.props.validity.filter.expire_soon": "即将过期", + "certificate.props.validity.filter.expiring_soon": "即将过期", "certificate.props.validity.filter.expired": "已过期", "certificate.props.brand": "证书品牌", "certificate.props.source": "来源", diff --git a/ui/src/i18n/locales/zh/nls.dashboard.json b/ui/src/i18n/locales/zh/nls.dashboard.json index 17c1f2fe..d26c29f3 100644 --- a/ui/src/i18n/locales/zh/nls.dashboard.json +++ b/ui/src/i18n/locales/zh/nls.dashboard.json @@ -2,7 +2,7 @@ "dashboard.page.title": "仪表盘", "dashboard.statistics.all_certificates": "所有证书", - "dashboard.statistics.expire_soon_certificates": "即将过期证书", + "dashboard.statistics.expiring_soon_certificates": "即将过期证书", "dashboard.statistics.expired_certificates": "已过期证书", "dashboard.statistics.all_workflows": "所有工作流", "dashboard.statistics.enabled_workflows": "已启用工作流", diff --git a/ui/src/i18n/locales/zh/nls.workflow.nodes.json b/ui/src/i18n/locales/zh/nls.workflow.nodes.json index 91b6f22c..a012f668 100644 --- a/ui/src/i18n/locales/zh/nls.workflow.nodes.json +++ b/ui/src/i18n/locales/zh/nls.workflow.nodes.json @@ -1102,7 +1102,7 @@ "workflow_node.condition.label": "并行/条件分支", "workflow_node.condition.help": "当满足指定的条件时,进入相应分支。某一分支中的节点执行失败不影响平行分支继续执行。", "workflow_node.condition.default_name": "并行", - "workflow_node.condition.default_name.template_certtest_on_expire_soon": "若网站证书即将过期…", + "workflow_node.condition.default_name.template_certtest_on_expiring_soon": "若网站证书即将过期…", "workflow_node.condition.default_name.template_certtest_on_expired": "若网站证书已过期…", "workflow_node.branch_block.label": "分支", diff --git a/ui/src/pages/certificates/CertificateList.tsx b/ui/src/pages/certificates/CertificateList.tsx index ecd927ca..1f25b16e 100644 --- a/ui/src/pages/certificates/CertificateList.tsx +++ b/ui/src/pages/certificates/CertificateList.tsx @@ -373,7 +373,7 @@ const CertificateList = () => { {t("certificate.props.validity.filter.all")}, value: "" }, - { label: {t("certificate.props.validity.filter.expire_soon")}, value: "expiringSoon" }, + { label: {t("certificate.props.validity.filter.expiring_soon")}, value: "expiringSoon" }, { label: {t("certificate.props.validity.filter.expired")}, value: "expired" }, ]} size="large" diff --git a/ui/src/pages/dashboard/Dashboard.tsx b/ui/src/pages/dashboard/Dashboard.tsx index f75bf945..1cb2572a 100644 --- a/ui/src/pages/dashboard/Dashboard.tsx +++ b/ui/src/pages/dashboard/Dashboard.tsx @@ -171,7 +171,7 @@ const StatisticCards = ({ className, style }: { className?: string; style?: Reac } - label={t("dashboard.statistics.expire_soon_certificates")} + label={t("dashboard.statistics.expiring_soon_certificates")} loading={loading} value={statistics?.certificateExpiringSoon ?? "-"} onClick={() => navigate("/certificates?state=expiringSoon")} diff --git a/ui/src/pages/settings/SettingsAbout.tsx b/ui/src/pages/settings/SettingsAbout.tsx index b4d86e8c..a72f730a 100644 --- a/ui/src/pages/settings/SettingsAbout.tsx +++ b/ui/src/pages/settings/SettingsAbout.tsx @@ -64,7 +64,7 @@ const SettingsAbout = () => {
{t("settings.about.contributors.tips")}
-
+
Contributors
diff --git a/ui/src/pages/workflows/WorkflowNew.tsx b/ui/src/pages/workflows/WorkflowNew.tsx index c0f403dc..657997d8 100644 --- a/ui/src/pages/workflows/WorkflowNew.tsx +++ b/ui/src/pages/workflows/WorkflowNew.tsx @@ -164,7 +164,7 @@ const WorkflowNew = () => { tryCatchNode.blocks!.at(1)!.blocks ??= []; tryCatchNode.blocks!.at(1)!.blocks!.unshift(notifyOnFailureNode); - conditionNode.blocks!.at(0)!.data.name = t("workflow_node.condition.default_name.template_certtest_on_expire_soon"); + conditionNode.blocks!.at(0)!.data.name = t("workflow_node.condition.default_name.template_certtest_on_expiring_soon"); conditionNode.blocks!.at(0)!.data.config = { ...conditionNode.blocks!.at(0)!.data.config, expression: {