Skip to content

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

chore: modify some texts (#1642)

ZhengXd34cb6f00a89
diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vue
index 755bf3a64c..35206d8679 100644
--- a/frontend/src/components/Breadcrumb.vue
+++ b/frontend/src/components/Breadcrumb.vue
@@ -108,12 +108,12 @@ export default defineComponent({
const list: Array<BreadcrumbItem> = [];
if (environmentSlug) {
list.push({
- name: t("common.environment"),
+ name: t("common.environments"),
path: "/environment",
});
} else if (projectSlug) {
list.push({
- name: t("common.project"),
+ name: t("common.projects"),
path: "/project",
});
@@ -126,12 +126,12 @@ export default defineComponent({
}
} else if (instanceSlug) {
list.push({
- name: t("common.instance"),
+ name: t("common.instances"),
path: "/instance",
});
} else if (databaseSlug) {
list.push({
- name: t("common.database"),
+ name: t("common.databases"),
path: "/db",
});
diff --git a/frontend/src/components/EnvironmentForm.vue b/frontend/src/components/EnvironmentForm.vue
index aee4387dfc..9b803c238e 100644
--- a/frontend/src/components/EnvironmentForm.vue
+++ b/frontend/src/components/EnvironmentForm.vue
@@ -3,7 +3,8 @@
<div class="grid grid-cols-1 gap-y-6 gap-x-4">
<div class="col-span-1">
<label for="name" class="textlabel">
- {{ $t("common.environments") }} <span class="text-red-600">*</span>
+ {{ $t("common.environment-name") }}
+ <span class="text-red-600">*</span>
</label>
<BBTextField
class="mt-2 w-full"
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index d7de4c91d8..71d6a8b0dc 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -46,6 +46,7 @@
"instances": "Instances",
"environment": "Environment",
"environments": "Environments",
+ "environment-name": "Environment Name",
"bookmark": "Bookmark",
"bookmarks": "Bookmarks",
"quick-action": "Quick Action",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index ccc2d2e906..d40149b0c8 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -46,6 +46,7 @@
"instances": "实例",
"environment": "环境",
"environments": "环境",
+ "environment-name": "环境名",
"bookmark": "书签",
"bookmarks": "书签",
"quick-action": "快捷操作",
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 52302cfe7c..9fd275f9c2 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -279,7 +279,7 @@ const routes: Array<RouteRecordRaw> = [
{
path: "setting",
name: "setting",
- meta: { title: () => t("common.setting") },
+ meta: { title: () => t("common.settings") },
components: {
content: () => import("../layouts/SettingLayout.vue"),
leftSidebar: () => import("../views/SettingSidebar.vue"),
@@ -435,7 +435,7 @@ const routes: Array<RouteRecordRaw> = [
path: "issue",
name: "workspace.issue",
meta: {
- title: () => t("common.issue"),
+ title: () => t("common.issues"),
},
components: {
content: () => import("../views/IssueDashboard.vue"),
@@ -447,7 +447,7 @@ const routes: Array<RouteRecordRaw> = [
path: "environment",
name: "workspace.environment",
meta: {
- title: () => t("common.environment"),
+ title: () => t("common.environments"),
quickActionListByRole: () => {
return new Map([
[
@@ -495,7 +495,7 @@ const routes: Array<RouteRecordRaw> = [
path: "project",
name: "workspace.project",
meta: {
- title: () => t("common.project"),
+ title: () => t("common.projects"),
quickActionListByRole: () => {
return new Map([
["OWNER", ["quickaction.bb.project.create"]],
@@ -629,7 +629,7 @@ const routes: Array<RouteRecordRaw> = [
path: "instance",
name: "workspace.instance",
meta: {
- title: () => t("common.instance"),
+ title: () => t("common.instances"),
quickActionListByRole: () => {
return new Map([
["OWNER", ["quickaction.bb.instance.create"]],
@@ -647,7 +647,7 @@ const routes: Array<RouteRecordRaw> = [
path: "db",
name: "workspace.database",
meta: {
- title: () => t("common.database"),
+ title: () => t("common.databases"),
quickActionListByRole: () => {
const hasDBAWorkflowFeature = hasFeature(
"bb.feature.dba-workflow"