Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: wording (#2811)
Liu Ji74ed90cffb87
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex a86611bfd9..c102764bfd 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1260,9 +1260,7 @@"download-as-csv": "Download as CSV","download-as-json": "Download as JSON","only-select-allowed": "Only {select} statements are allowed to execute.",- "want-to-change-schema": "If you want to {changeschema}.",- "change-schema": "change schema",- "go-to-alter-schema": "You can click the {alterschema} button, and submit an issue.",+ "want-to-action": "If you want to {want}, click the {action} button and submit an issue.","table-schema-placeholder": "Select a table to see its schema","notify-empty-statement": "Please input your SQL statements in the editor","notify-multiple-statements": "Multiple SQL statements detected. SQL Editor only executes the first statement. You can select another statement and execute it individually.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex f8dd69cfff..03ed74c53b 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1260,9 +1260,7 @@"download-as-csv": "下载为 CSV 格式","download-as-json": "下载为 JSON 格式","only-select-allowed": "只允许执行 {select} 语句",- "want-to-change-schema": "如果您想要 {changeschema}",- "change-schema": "变更 Schema",- "go-to-alter-schema": "您可以点击 “{alterschema}” 按钮,提交一个工单",+ "want-to-action": "如果您想要{action},点击“{action}”按钮并提交一个工单。","table-schema-placeholder": "选择一个表进行查看 Schema","notify-empty-statement": "请在编辑器中输入 SQL 语句","notify-multiple-statements": "检测到您输入了多条 SQL 语句。SQL 编辑器只支持执行第一条语句。您可以选择其他语句单独执行。",diff --git a/frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vue b/frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vueindex 48d6f96dc9..4726bc6119 100644--- a/frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vue+++ b/frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vue@@ -1,5 +1,5 @@<template>- <div class="execute-hint w-160">+ <div class="execute-hint w-112"><NAlert type="info"><section class="space-y-2"><p>@@ -10,17 +10,15 @@</i18n-t></p><p>- <i18n-t keypath="sql-editor.want-to-change-schema">- <template #changeschema>- <NButton text :href="docLink" type="primary" target="_blank">- {{ $t("sql-editor.change-schema") }}- </NButton>+ <i18n-t keypath="sql-editor.want-to-action">+ <template #want>+ {{+ isDDLSQLStatement+ ? $t("database.alter-schema").toLowerCase()+ : $t("database.change-data").toLowerCase()+ }}</template>- </i18n-t>- </p>- <p>- <i18n-t keypath="sql-editor.go-to-alter-schema">- <template #alterschema>+ <template #action><strong>{{isDDLSQLStatement@@ -35,7 +33,7 @@</NAlert><div class="execute-hint-content mt-4 flex justify-end space-x-2">- <NButton @click="handleColse">{{ $t("common.close") }}</NButton>+ <NButton @click="handleClose">{{ $t("common.close") }}</NButton><NButton type="primary" @click="gotoAlterSchema">{{isDDLSQLStatement@@ -86,10 +84,7 @@ const isDDLSQLStatement = computed(() => {return data !== null ? isDDLStatement(data) : false;});-const docLink =- "https://bytebase.com/docs/concepts/schema-change-workflow#ui-workflow?source=console";--const handleColse = () => {+const handleClose = () => {emit("close");};@@ -125,5 +120,3 @@ const gotoAlterSchema = () => {});};</script>--<style scoped></style>