Skip to content

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

chore: update db name template tips wording (#4593)

Liu Jibf9448e7c728
diff --git a/frontend/src/components/ProjectDeploymentConfigPanel.vue b/frontend/src/components/ProjectDeploymentConfigPanel.vue
index 74bc68e759..6bcaaef25a 100644
--- a/frontend/src/components/ProjectDeploymentConfigPanel.vue
+++ b/frontend/src/components/ProjectDeploymentConfigPanel.vue
@@ -21,12 +21,12 @@
<i18n-t keypath="label.db-name-template-tips">
<template #placeholder>
<!-- prettier-ignore -->
- <code v-pre class="text-xs font-mono bg-control-bg">{{DB_NAME}}</code>
+ <code v-pre class="text-xs font-mono bg-control-bg">{{DB_NAME}}__{{TENANT}}</code>
</template>
<template #link>
<a
class="normal-link inline-flex items-center"
- href="https://www.bytebase.com/docs/tenant-database-management/overview#database-name-template?source=console"
+ href="https://www.bytebase.com/docs/tenant-database-management/overview?source=console#database-name-template"
target="__BLANK"
>
{{ $t("common.learn-more") }}
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 85d055b339..5529b987f5 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1555,7 +1555,7 @@
"setting": {
"description": "A label is a key-value pair that helps you identify the tenant for a database. {link}."
},
- "db-name-template-tips": "If your tenant databases follow a naming template, you can specify it here. Otherwise, please uncheck the box. {link}.",
+ "db-name-template-tips": "If your tenant databases follow a naming template, you can specify it here. For example, the databases are named as db1__SH, db1__BJ, db1__GZ, then the template could be {placeholder}. {link}.",
"confirm-change": "Are you sure to change '{label}' ?",
"parsed-from-template": "Parsed from {name} by template {template}.",
"cannot-transfer-template-not-match": "Database '{name}' cannot be transferred to this project. Since its name doesn't match the template {template}."
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 4695481375..5b27a67a5f 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1556,7 +1556,7 @@
"setting": {
"description": "标签是一组可用于标识数据库租户的键值对。{link}。"
},
- "db-name-template-tips": "如果您的租户数据库名字遵循命名模版,您可以在这里指定。否则就让它为空。{link}。",
+ "db-name-template-tips": "如果您的租户数据库名字遵循命名模版,您可以在这里指定。例如:数据库名字为 db1__SH, db1__BJ, db1__GZ,此时命名模板可以是 {placeholder}。{link}。",
"confirm-change": "您确定要修改 '{label}' 吗?",
"parsed-from-template": "从 {name} 中依据模板 {template} 解析得出",
"cannot-transfer-template-not-match": "数据库 '{name}' 无法转移到这个项目,因为它的名称不符合模板 {template}。"