i18n(automation): localize RuleEditor and WorkflowEditor form strings
Adds ~40 automation.ruleEditor.* and automation.workflowEditor.* keys to en.ts + zh.ts (labels, placeholders, error messages, action labels). RuleFormModal and WorkflowFormModal now route every hardcoded English string through useT(), including validation errors and modal titles. Closes remaining Z-B i18n work after the prompt-builder locale dispatch (cf92e0c), dept-keywords typing (a78bdb9), and sidebar/ formatters/notification/skills i18n landed earlier.
This commit is contained in:
1 parent
a78bdb9b02
commit
1f310a121e
4 files changed
+115
-29
No files matched your search
@@ -935,4 +935,45 @@ export const en: Record<string, string> = {
|
||||
"conn.refreshingState": "Refreshing connector state...",
|
||||
"conn.latestHealthCheck": "Latest health-check detail",
|
||||
"conn.configDoc": "Configuration doc",
|
||||
|
||||
// ── Automation rule editor ──
|
||||
"automation.ruleEditor.newTitle": "New Automation Rule",
|
||||
"automation.ruleEditor.editTitle": "Edit Automation Rule",
|
||||
"automation.ruleEditor.nameLabel": "Rule Name",
|
||||
"automation.ruleEditor.namePlaceholder": "e.g., Auto-assign blocked tasks",
|
||||
"automation.ruleEditor.descriptionLabel": "Description",
|
||||
"automation.ruleEditor.descriptionPlaceholder": "What does this rule do?",
|
||||
"automation.ruleEditor.triggerLabel": "Trigger",
|
||||
"automation.ruleEditor.conditionsLabel": "Conditions (JSON)",
|
||||
"automation.ruleEditor.actionLabel": "Action",
|
||||
"automation.ruleEditor.actionConfigLabel": "Action Configuration (JSON)",
|
||||
"automation.ruleEditor.sourceDepartmentLabel": "Source Department",
|
||||
"automation.ruleEditor.targetDepartmentLabel": "Target Department",
|
||||
"automation.ruleEditor.priorityLabel": "Priority",
|
||||
"automation.ruleEditor.priorityLow": "Low priority",
|
||||
"automation.ruleEditor.priorityHigh": "High priority",
|
||||
"automation.ruleEditor.cancel": "Cancel",
|
||||
"automation.ruleEditor.save": "Save Changes",
|
||||
"automation.ruleEditor.create": "Create Rule",
|
||||
"automation.ruleEditor.errNameRequired": "Rule name is required",
|
||||
"automation.ruleEditor.errConditionsJson": "Conditions must be valid JSON",
|
||||
"automation.ruleEditor.errActionConfigJson": "Action config must be valid JSON",
|
||||
"automation.ruleEditor.errSaveFailed": "Failed to save rule",
|
||||
|
||||
// ── Workflow editor ──
|
||||
"automation.workflowEditor.newTitle": "New Workflow",
|
||||
"automation.workflowEditor.editTitle": "Edit Workflow",
|
||||
"automation.workflowEditor.nameLabel": "Workflow Name",
|
||||
"automation.workflowEditor.namePlaceholder": "e.g., Production deployment pipeline",
|
||||
"automation.workflowEditor.descriptionLabel": "Description",
|
||||
"automation.workflowEditor.descriptionPlaceholder": "Describe this workflow pipeline",
|
||||
"automation.workflowEditor.triggerLabel": "Trigger (JSON)",
|
||||
"automation.workflowEditor.stepsLabel": "Steps (JSON array)",
|
||||
"automation.workflowEditor.cancel": "Cancel",
|
||||
"automation.workflowEditor.save": "Save Changes",
|
||||
"automation.workflowEditor.create": "Create Workflow",
|
||||
"automation.workflowEditor.errNameRequired": "Workflow name is required",
|
||||
"automation.workflowEditor.errTriggerJson": "Trigger must be valid JSON",
|
||||
"automation.workflowEditor.errStepsJson": "Steps must be a valid JSON array",
|
||||
"automation.workflowEditor.errSaveFailed": "Failed to save workflow",
|
||||
};
|
||||
@@ -935,4 +935,45 @@ export const zh: Record<string, string> = {
|
||||
"conn.refreshingState": "正在刷新连接器状态...",
|
||||
"conn.latestHealthCheck": "最新健康检查详情",
|
||||
"conn.configDoc": "配置文档",
|
||||
|
||||
// ── 自动化规则编辑器 ──
|
||||
"automation.ruleEditor.newTitle": "新建自动化规则",
|
||||
"automation.ruleEditor.editTitle": "编辑自动化规则",
|
||||
"automation.ruleEditor.nameLabel": "规则名称",
|
||||
"automation.ruleEditor.namePlaceholder": "例如:自动分配阻塞任务",
|
||||
"automation.ruleEditor.descriptionLabel": "描述",
|
||||
"automation.ruleEditor.descriptionPlaceholder": "这条规则的作用?",
|
||||
"automation.ruleEditor.triggerLabel": "触发条件",
|
||||
"automation.ruleEditor.conditionsLabel": "条件 (JSON)",
|
||||
"automation.ruleEditor.actionLabel": "动作",
|
||||
"automation.ruleEditor.actionConfigLabel": "动作配置 (JSON)",
|
||||
"automation.ruleEditor.sourceDepartmentLabel": "来源部门",
|
||||
"automation.ruleEditor.targetDepartmentLabel": "目标部门",
|
||||
"automation.ruleEditor.priorityLabel": "优先级",
|
||||
"automation.ruleEditor.priorityLow": "低优先级",
|
||||
"automation.ruleEditor.priorityHigh": "高优先级",
|
||||
"automation.ruleEditor.cancel": "取消",
|
||||
"automation.ruleEditor.save": "保存更改",
|
||||
"automation.ruleEditor.create": "创建规则",
|
||||
"automation.ruleEditor.errNameRequired": "请填写规则名称",
|
||||
"automation.ruleEditor.errConditionsJson": "条件必须是有效的 JSON",
|
||||
"automation.ruleEditor.errActionConfigJson": "动作配置必须是有效的 JSON",
|
||||
"automation.ruleEditor.errSaveFailed": "保存规则失败",
|
||||
|
||||
// ── 工作流编辑器 ──
|
||||
"automation.workflowEditor.newTitle": "新建工作流",
|
||||
"automation.workflowEditor.editTitle": "编辑工作流",
|
||||
"automation.workflowEditor.nameLabel": "工作流名称",
|
||||
"automation.workflowEditor.namePlaceholder": "例如:生产部署流水线",
|
||||
"automation.workflowEditor.descriptionLabel": "描述",
|
||||
"automation.workflowEditor.descriptionPlaceholder": "描述这个工作流流水线",
|
||||
"automation.workflowEditor.triggerLabel": "触发条件 (JSON)",
|
||||
"automation.workflowEditor.stepsLabel": "步骤 (JSON 数组)",
|
||||
"automation.workflowEditor.cancel": "取消",
|
||||
"automation.workflowEditor.save": "保存更改",
|
||||
"automation.workflowEditor.create": "创建工作流",
|
||||
"automation.workflowEditor.errNameRequired": "请填写工作流名称",
|
||||
"automation.workflowEditor.errTriggerJson": "触发条件必须是有效的 JSON",
|
||||
"automation.workflowEditor.errStepsJson": "步骤必须是有效的 JSON 数组",
|
||||
"automation.workflowEditor.errSaveFailed": "保存工作流失败",
|
||||
};
|
||||
Reference in new issue
Block a user