Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: use i18n template instead of %s (#151)
ecmadao59fa91c315b2
diff --git a/frontend/src/components/IntroBanner.vue b/frontend/src/components/IntroBanner.vueindex d5b71ca256..93cb8fb420 100644--- a/frontend/src/components/IntroBanner.vue+++ b/frontend/src/components/IntroBanner.vue@@ -3,7 +3,7 @@<img class="m-4 h-72" src="../assets/illustration/guide.webp" alt="" /><div class="m-4"><h2 class="text-xl text-main">- <i18n-t keypath="intro.content" tag="p">+ <i18n-t keypath="intro.content"><template v-slot:quickstart><span class="text-accent">{{ $t("common.quickstart") }}</span></template>diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.ymlindex c3ca380d2a..b3270d1da7 100644--- a/frontend/src/locales/en.yml+++ b/frontend/src/locales/en.yml@@ -78,7 +78,7 @@ settings:plan: (Upgrade to Team plan to enable role management)workspace:url-section: SQL Console URL- url-tip: "Tip: Use %s as the placeholder for the actual+ url-tip: "Tip: Use {schema} as the placeholder for the actualdatabase name"tip: If your team use a separate SQL console such as phpMyAdmin, you canprovide its URL pattern here. Once provided, Bytebase will surface thediff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.ymlindex e6859f6728..c35f2c0323 100644--- a/frontend/src/locales/zh-CN.yml+++ b/frontend/src/locales/zh-CN.yml@@ -73,7 +73,7 @@ settings:plan: (升级到团队方案来开启角色管理)workspace:url-section: SQL Console URL- url-tip: "提示: 用 %s 作为真实数据库名称的占位符"+ url-tip: "提示: 用 {schema} 作为真实数据库名称的占位符"tip: 如果你的团队使用一个单独的 SQL 控制台,如 phpMyAdmin,那么可以在这里提供它的 URL 模板,Bytebase 就可以将控制台链接到相关的数据库和表的界面上。tip-link: 详细指引members:diff --git a/frontend/src/views/SettingWorkspaceGeneral.vue b/frontend/src/views/SettingWorkspaceGeneral.vueindex 71524881f5..2bd57ba829 100644--- a/frontend/src/views/SettingWorkspaceGeneral.vue+++ b/frontend/src/views/SettingWorkspaceGeneral.vue@@ -26,7 +26,11 @@:disabled="!allowEdit"/><div for="databaseUrl" class="mt-2 textinfolabel">- {{ $t("settings.workspace.url-tip").replace('%s', placeholder) }}+ <i18n-t keypath="settings.workspace.url-tip">+ <template v-slot:schema>+ {{ placeholder }}+ </template>+ </i18n-t></div></div></div>