Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: missing task check type translation (#5254)

Liu Ji1b8049c7ea99
diff --git a/frontend/src/components/Issue/TaskCheckBadgeBar.vue b/frontend/src/components/Issue/TaskCheckBadgeBar.vue
index ec34f650f4..af8cc4e95a 100644
--- a/frontend/src/components/Issue/TaskCheckBadgeBar.vue
+++ b/frontend/src/components/Issue/TaskCheckBadgeBar.vue
@@ -238,6 +238,8 @@ const TaskCheckTypeOrderList: TaskCheckType[] = [
"bb.task-check.instance.migration-schema",
"bb.task-check.database.statement.advise",
"bb.task-check.issue.lgtm",
+ "bb.task-check.database.statement.affected-rows.report",
+ "bb.task-check.database.statement.type.report",
];
const TaskCheckTypeOrderDict = new Map<TaskCheckType, number>(
TaskCheckTypeOrderList.map((type, index) => [type, index])
@@ -266,5 +268,10 @@ const TaskCheckTypeNameDict = new Map<TaskCheckType, string>([
["bb.task-check.database.ghost.sync", "task.check-type.ghost-sync"],
["bb.task-check.issue.lgtm", "task.check-type.lgtm"],
["bb.task-check.pitr.mysql", "task.check-type.pitr"],
+ [
+ "bb.task-check.database.statement.affected-rows.report",
+ "task.check-type.affected-rows",
+ ],
+ ["bb.task-check.database.statement.type.report", "task.check-type.sql-type"],
]);
</script>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index cdb5f319df..de14db509e 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -272,7 +272,9 @@
"ghost-sync": "gh-ost sync",
"statement-type": "Statement type",
"lgtm": "LGTM",
- "pitr": "PITR"
+ "pitr": "PITR",
+ "affected-rows": "Affected rows",
+ "sql-type": "SQL type"
},
"earliest-allowed-time-hint": "'@:{'common.when'}' specifies the expected execution timing for this task. If this field is not specified, the task will be executed once it has passed all other gating criteria.",
"earliest-allowed-time-unset": "Unset",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 38bd9a59be..62db651f96 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -270,7 +270,9 @@
"ghost-sync": "gh-ost 同步",
"statement-type": "语句类型",
"lgtm": "LGTM",
- "pitr": "PITR"
+ "pitr": "PITR",
+ "affected-rows": "影响行数",
+ "sql-type": "SQL 类型"
},
"earliest-allowed-time-hint": "'@:{'common.when'}' 指定了该任务最早允许执行的时间。如果该字段没有被指定,则任务会在满足其他条件后立即执行。",
"comment": "评论",