Skip to content

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

feat: rename "New " to "New Issue" on breadcrumb (#1246)

Liu Ji35f1aac478aa
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 60e1bb5267..bfc6afa19d 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -472,7 +472,8 @@
"title": "Online migration (for large-sized table)",
"description": "Perform schema change on a duplicated empty table. Sync the data and swap the table name after sync finishes. Applying migration on a large table directly would cause long-time unavailability {link}."
}
- }
+ },
+ "new-issue": "@:common.new @:common.issue"
},
"alter-schema": {
"vcs-enabled": "This project has enabled VCS based version control and selecting database below will navigate you to the corresponding Git repository to initiate the change process.",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 546fc98649..13dd2fb37f 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -472,7 +472,8 @@
"title": "在线变更 (适用于数据量大的表)",
"description": "在复制的空表上执行 schema 变更,开始从原表同步数据,并在同步完成之后交换表名。如果直接在原表上变更会导致长时间不可用 {link}。"
}
- }
+ },
+ "new-issue": "@:common.new@:common.issue"
},
"alter-schema": {
"vcs-enabled": "该项目开启了基于 VCS 的版本管理,选择下面的数据库会将您导航到相应的 Git 仓库以发起变更流程。",
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 319274760d..8162cd5a0c 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -757,7 +757,7 @@ const routes: Array<RouteRecordRaw> = [
title: (route: RouteLocationNormalized) => {
const slug = route.params.issueSlug as string;
if (slug.toLowerCase() == "new") {
- return t("common.new");
+ return t("issue.new-issue");
}
const issue = useIssueStore().getIssueById(idFromSlug(slug));
return issue.name;