Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(i18n): Database part2 (#199)
p0nyef786cca144c
diff --git a/frontend/src/components/BackupTable.vue b/frontend/src/components/BackupTable.vueindex af3053c234..53338a6e31 100644--- a/frontend/src/components/BackupTable.vue+++ b/frontend/src/components/BackupTable.vue@@ -44,15 +44,7 @@</template><template v-else-if="backup.status == 'FAILED'"><span- class="- h-2- w-2- rounded-full- text-center- pb-6- font-normal- text-base- "+ class="h-2 w-2 rounded-full text-center pb-6 font-normal text-base"aria-hidden="true">!</span>@@ -99,14 +91,14 @@}">- Restore+ {{ $t("database.restore") }}</button></BBTableCell></template></BBTable><BBModalv-if="state.showRestoreBackupModal"- :title="`Restore backup '${state.restoredBackup.name}' to a new database`"+ :title="$t('database.restore-backup', [state.restoredBackup.name])"@close="() => {state.showRestoreBackupModal = false;@@ -138,51 +130,7 @@ import { bytesToString, databaseSlug, migrationHistorySlug } from "../utils";import { useStore } from "vuex";import CreateDatabasePrepForm from "../components/CreateDatabasePrepForm.vue";import { useRouter } from "vue-router";--const EDIT_COLUMN_LIST: BBTableColumn[] = [- {- title: "Status",- },- {- title: "Name",- },- {- title: "Comment",- },- {- title: "Schema version",- },- {- title: "Time",- },- {- title: "Creator",- },- {- title: "",- },-];--const NON_EDIT_COLUMN_LIST: BBTableColumn[] = [- {- title: "Status",- },- {- title: "Name",- },- {- title: "Comment",- },- {- title: "Schema version",- },- {- title: "Time",- },- {- title: "Creator",- },-];+import { useI18n } from "vue-i18n";interface LocalState {showRestoreBackupModal: boolean;@@ -210,22 +158,68 @@ export default {setup(props) {const router = useRouter();const store = useStore();+ const { t } = useI18n();const state = reactive<LocalState>({showRestoreBackupModal: false,loadingMigrationHistory: false,});+ const EDIT_COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.status"),+ },+ {+ title: t("common.name"),+ },+ {+ title: t("common.comment"),+ },+ {+ title: t("common.schema-version"),+ },+ {+ title: t("common.time"),+ },+ {+ title: t("common.creator"),+ },+ {+ title: "",+ },+ ];++ const NON_EDIT_COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.status"),+ },+ {+ title: t("common.name"),+ },+ {+ title: t("common.comment"),+ },+ {+ title: t("common.schema-version"),+ },+ {+ title: t("common.time"),+ },+ {+ title: t("common.creator"),+ },+ ];+const backupSectionList = computed(() => {const manualList: Backup[] = [];const automaticList: Backup[] = [];const sectionList: BBTableSectionDataSource<Backup>[] = [{- title: "Manual",+ title: t("common.manual"),list: manualList,},{- title: "Automatic",+ title: t("common.automatic"),list: automaticList,},];diff --git a/frontend/src/components/ColumnTable.vue b/frontend/src/components/ColumnTable.vueindex 29aaf43e0d..a3ec62aa63 100644--- a/frontend/src/components/ColumnTable.vue+++ b/frontend/src/components/ColumnTable.vue@@ -46,69 +46,7 @@import { computed, PropType } from "vue";import { BBTableColumn } from "../bbkit/types";import { Column, EngineType } from "../types";--const NORMAL_COLUMN_LIST: BBTableColumn[] = [- {- title: "Name",- },- {- title: "Type",- },- {- title: "Default",- },- {- title: "Nullable",- },- {- title: "Character set",- },- {- title: "Collation",- },- {- title: "Comment",- },-];--const POSTGRES_COLUMN_LIST: BBTableColumn[] = [- {- title: "Name",- },- {- title: "Type",- },- {- title: "Default",- },- {- title: "Nullable",- },- {- title: "Collation",- },- {- title: "Comment",- },-];--const CLICKHOUSE_SNOWFLAKE_COLUMN_LIST: BBTableColumn[] = [- {- title: "Name",- },- {- title: "Type",- },- {- title: "Default",- },- {- title: "Nullable",- },- {- title: "Comment",- },-];+import { useI18n } from "vue-i18n";export default {name: "ColumnTable",@@ -124,6 +62,68 @@ export default {},},setup(props) {+ const { t } = useI18n();+ const NORMAL_COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.name"),+ },+ {+ title: t("common.type"),+ },+ {+ title: t("common.Default"),+ },+ {+ title: t("database.nullable"),+ },+ {+ title: t("db.character-set"),+ },+ {+ title: t("db.collation"),+ },+ {+ title: t("database.comment"),+ },+ ];+ const POSTGRES_COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.name"),+ },+ {+ title: t("common.type"),+ },+ {+ title: t("common.Default"),+ },+ {+ title: t("database.nullable"),+ },+ {+ title: t("db.collation"),+ },+ {+ title: t("database.comment"),+ },+ ];++ const CLICKHOUSE_SNOWFLAKE_COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.name"),+ },+ {+ title: t("common.type"),+ },+ {+ title: t("common.Default"),+ },+ {+ title: t("database.nullable"),+ },+ {+ title: t("database.comment"),+ },+ ];const columnNameList = computed(() => {switch (props.engine) {case "POSTGRES":diff --git a/frontend/src/components/DatabaseBackupPanel.vue b/frontend/src/components/DatabaseBackupPanel.vueindex 4a35585fa4..c1548363dd 100644--- a/frontend/src/components/DatabaseBackupPanel.vue+++ b/frontend/src/components/DatabaseBackupPanel.vue@@ -7,7 +7,9 @@class="flex items-center text-lg leading-6 font-medium text-main">{{ $t("database.automatic-weekly-backup") }}- <span class="ml-1 text-success">enabled</span>+ <span class="ml-1 text-success">+ {{ $t("database.backup.enabled") }}+ </span></div><buttonv-if="allowDisableAutoBackup"@@ -78,7 +80,9 @@class="flex items-center text-lg leading-6 font-medium text-main">{{ $t("database.automatic-weekly-backup") }}- <span class="ml-1 text-control-light">disabled</span>+ <span class="ml-1 text-control-light">{{+ $t("database.backup.disabled")+ }}</span><buttonv-if="allowAdmin && !state.autoBackupEnabled"type="button"diff --git a/frontend/src/components/IndexTable.vue b/frontend/src/components/IndexTable.vueindex 31fdfe8cd7..8cadaf8868 100644--- a/frontend/src/components/IndexTable.vue+++ b/frontend/src/components/IndexTable.vue@@ -40,24 +40,7 @@import { computed, PropType } from "vue";import { BBTableColumn, BBTableSectionDataSource } from "../bbkit/types";import { TableIndex } from "../types";--const COLUMN_LIST: BBTableColumn[] = [- {- title: "Expression",- },- {- title: "Position",- },- {- title: "Unique",- },- {- title: "Visible",- },- {- title: "Comment",- },-];+import { useI18n } from "vue-i18n";export default {name: "IndexTable",@@ -69,6 +52,24 @@ export default {},},setup(props) {+ const { t } = useI18n();+ const COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("database.expression"),+ },+ {+ title: t("database.position"),+ },+ {+ title: t("database.unique"),+ },+ {+ title: t("database.visible"),+ },+ {+ title: t("database.comment"),+ },+ ];const sectionList = computed(() => {const sectionList: BBTableSectionDataSource<TableIndex>[] = [];diff --git a/frontend/src/components/ViewTable.vue b/frontend/src/components/ViewTable.vueindex 25c2876f9d..14fccd0bf0 100644--- a/frontend/src/components/ViewTable.vue+++ b/frontend/src/components/ViewTable.vue@@ -28,21 +28,7 @@import { PropType } from "vue";import { BBTableColumn } from "../bbkit/types";import { View } from "../types";--const COLUMN_LIST: BBTableColumn[] = [- {- title: "Name",- },- {- title: "Definition",- },- {- title: "Comment",- },- {- title: "Created",- },-];+import { useI18n } from "vue-i18n";export default {name: "ViewTable",@@ -54,6 +40,21 @@ export default {},},setup() {+ const { t } = useI18n();+ const COLUMN_LIST: BBTableColumn[] = [+ {+ title: t("common.name"),+ },+ {+ title: t("common.definition"),+ },+ {+ title: t("database.comment"),+ },+ {+ title: t("common.created-at"),+ },+ ];return {COLUMN_LIST,};diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.ymlindex 621e7c9d1a..d2515e2089 100644--- a/frontend/src/locales/en.yml+++ b/frontend/src/locales/en.yml@@ -121,6 +121,12 @@ common:confirm: Confirmcoming-later: Coming laterlearn-more: Learn more+ schema-version: Schema version+ time: Time+ manual: Manual+ automatic: Automatic+ Default: Default+ definition: Definitionerror-page:go-back-home: Go back homeanomaly-center: Anomaly Center@@ -198,7 +204,7 @@ settings:plan: (Upgrade to Team plan to enable role management)workspace:url-section: SQL Console URL- url-tip: "Tip: Use {schema} as the placeholder for the actual database name"+ url-tip: 'Tip: Use {schema} as the placeholder for the actual database name'tip: >-If your team use a separate SQL console such as phpMyAdmin, you canprovide its URL pattern here. Once provided, Bytebase will surface the@@ -251,7 +257,7 @@ activity:reopened-issue: reopened issueresolved-issue: resolved issuecanceled-issue: canceled issue- empty: ""+ empty: ''changed: changedupdated: updatedcanceled: canceled@@ -259,7 +265,7 @@ activity:started: startedcompleted: completedfailed: failed- task-name: " task {name}"+ task-name: ' task {name}'committed-to-at: committed {file} to{branch}{'@'}{repo}subject-prefix:task: Task@@ -306,7 +312,7 @@ issue:updated: Updatedassignee: Assigneestage-select:- active: "{name} (active)"+ active: '{name} (active)'alter-schema:vcs-enabled: >-This project has enabled VCS based version control and selecting database@@ -327,14 +333,14 @@ quick-action:create-db: Create databasechoose-db: Choose databasenew-db: New DB- add-instance: "@:common.add @:common.instance"- create-instance: "@:common.create @:common.instance"+ add-instance: '@:common.add @:common.instance'+ create-instance: '@:common.create @:common.instance'manage-user: Manage Userdefault-project: Default Project- add-environment: "@:common.add @:common.environment"- create-environment: "@:common.create @:common.environment"- new-project: "@:common.new @:common.project"- create-project: "@:common.create @:common.project"+ add-environment: '@:common.add @:common.environment'+ create-environment: '@:common.create @:common.environment'+ new-project: '@:common.new @:common.project'+ create-project: '@:common.create @:common.project'edit-data: Edit Datatroubleshoot: Troubleshoottransfer-in-db: Transfer in DB@@ -348,7 +354,7 @@ quick-action:transfer-in-db-alert: Are you sure to transfer "{ dbName }" into our project?create-db:new-database-name: New database name- reserved-db-error: "{databaseName} is a reserved name"+ reserved-db-error: '{databaseName} is a reserved name'db:encoding: Encodingcharacter-set: Character set@@ -369,8 +375,7 @@ instance:create-migration-schema: Create migration schemamissing-migration-schema: Missing migration schemaunable-to-connect-instance-to-check-migration-schema: Unable to connect instance to check migration schema- bytebase-relies-on-migration-schema-to-manage-version-control-based-schema-migration-for-databases-belonged-to-this-instance:- >-+ bytebase-relies-on-migration-schema-to-manage-version-control-based-schema-migration-for-databases-belonged-to-this-instance: >-Bytebase relies on migration schema to manage version control based schemamigration for databases belonged to this instance.please-contact-your-dba-to-configure-it: Please contact your DBA to configure it.@@ -384,8 +389,7 @@ instance:successfully-synced-schema-for-instance-instance-value-name: Successfully synced schema for instance '{0}'.archive-this-instance: Archive this instancearchive-instance-instance-name: Archive instance '{0}'?- archived-instances-will-not-be-shown-on-the-normal-interface-you-can-still-restore-later-from-the-archive-page:- >-+ archived-instances-will-not-be-shown-on-the-normal-interface-you-can-still-restore-later-from-the-archive-page: >-Archived instances will not be shown on the normal interface. You can stillrestore later from the Archive page.restore-this-instance: Restore this instance@@ -401,10 +405,10 @@ environment:quick-start:bookmark-an-issue: Bookmark an issueadd-a-comment: Add a comment- visit-project: "@:common.visit @:common.projects"- visit-instance: "@:common.visit @:common.instances"- visit-database: "@:common.visit @:common.databases"- visit-environment: "@:common.visit @:common.environments"+ visit-project: '@:common.visit @:common.projects'+ visit-instance: '@:common.visit @:common.instances'+ visit-database: '@:common.visit @:common.databases'+ visit-environment: '@:common.visit @:common.environments'add-a-member: Add a membernotice:title: Quickstart guide dismissed@@ -493,8 +497,8 @@ database:In Bytebase, a database always belongs to a single project.\n\nBytebase willperiodically sync the database info for every recorded instance. You canalso create a new database from the dashboard.- restored-from: "Restored from "- database-name-is-restored-from-another-database-backup: "{0} is restored from another database backup"+ restored-from: 'Restored from '+ database-name-is-restored-from-another-database-backup: '{0} is restored from another database backup'database-backup: database backupsql-console: SQL Consoletransfer-project: Transfer Project@@ -504,7 +508,7 @@ database:create-backup: Create backupautomatic-weekly-backup: Automatic weekly backupdisable-automatic-backup: Disable automatic backup- backuppolicy-backup-enforced-and-cant-be-disabled: "{0} backup enforced and can't be disabled"+ backuppolicy-backup-enforced-and-cant-be-disabled: '{0} backup enforced and can''t be disabled'backup-policy:DAILY: DAILYWEEKLY: WEEKLY@@ -525,15 +529,32 @@ database:create-a-manual-backup: Create a manual backupdisabled: Disabledenabled: Enabled- action-automatic-backup-for-database-props-database-name: "{0} automatic backup for database '{1}'."+ action-automatic-backup-for-database-props-database-name: '{0} automatic backup for database ''{1}''.'updated-backup-webhook-url-for-database-props-database-name: Updated backup webhook URL for database '{0}'.last-sync-status: Last sync status {0} at {1}version-control-enabled: Version control enabled+ restore-backup: Restore backup '{0}' to a new database+ nullable: Nullable+ restore: Restore+ backup:+ enabled: enabled+ disabled: disabled+ expression: Expression+ position: Position+ unique: Unique+ visible: Visible+ comment: Comment+ engine: Engine+ row-count-estimate: Row count estimate+ data-size: Data size+ index-size: Index size+ columns: Columns+ indexes: Indexest:database: {}repository:branch-observe-file-change: The branch where Bytebase observes the file change.- branch-specify-tip: "Tip: You can also use wildcard like 'feature/*"+ branch-specify-tip: 'Tip: You can also use wildcard like ''feature/*'base-directory: Base directorybase-directory-description: >-The root directory where Bytebase observes the file change. If empty, then@@ -556,7 +577,7 @@ repository:if-specified: If specifiedschema-path-example: Schema path examplegit-provider: Git provider- version-control-status: "@.capitalize:common.version-control is {status}"+ version-control-status: '@.capitalize:common.version-control is {status}'version-control-description-file-path: >-Database migration scripts are stored in {fullPath}. To make schema changes,a developer would create a migration script matching file path pattern@@ -654,15 +675,15 @@ project:confirm: Do not show againsearch-bar-placeholder: Search project nametable:- key: "@:common.key"- name: "@:common.name"+ key: '@:common.key'+ name: '@:common.name'created-at: Created Atcreate-modal:- project-name: "@:common.project @:common.name"- key: "@:common.key"+ project-name: '@:common.project @:common.name'+ key: '@:common.key'key-hint: (Uppercase letters identifying your project)- cancel: "@:common.cancel"- confirm: "@:common.create"+ cancel: '@:common.cancel'+ confirm: '@:common.create'overview:view-all: View allview-all-closed: View all closed@@ -719,8 +740,8 @@ project:member-placeholder: Select usermanage-member: Manage membersadd-member: Add member- owner: "@.upper:common.role.owner"- developer: "@.upper:common.role.developer"+ owner: '@.upper:common.role.owner'+ developer: '@.upper:common.role.developer'archive:btn-text: Archive this @.lower:{'common.project'}restore:@@ -801,4 +822,4 @@ archive:archived: Archivedproject-search-bar-placeholder: Search @.lower:{'common.project'} nameinstance-search-bar-placeholder: Search @.lower:{'common.instance'} name- environment-search-bar-placeholder: Search @.lower:{'common.environment'} name\ No newline at end of file+ environment-search-bar-placeholder: Search @.lower:{'common.environment'} namediff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.ymlindex 92f7475541..999d2d99e3 100644--- a/frontend/src/locales/zh-CN.yml+++ b/frontend/src/locales/zh-CN.yml@@ -121,6 +121,12 @@ common:confirm: 确认coming-later: 敬请期待learn-more: 了解更多+ schema-version: Schema 版本+ time: 时间+ manual: 手动+ automatic: 自动+ Default: 默认+ definition: 定义error-page:go-back-home: 回到主页anomaly-center: 异常中心@@ -141,7 +147,7 @@ task:checking: 检查中…run-task: 运行检查check-result:- title: "{name} 的检查结果"+ title: '{name} 的检查结果'check-type:fake: Fakesyntax: 语法@@ -195,7 +201,7 @@ settings:plan: (升级到团队方案来开启角色管理)workspace:url-section: SQL Console URL- url-tip: "提示: 用 {schema} 作为真实数据库名称的占位符"+ url-tip: '提示: 用 {schema} 作为真实数据库名称的占位符'tip: >-如果您的团队使用一个单独的 SQL 控制台,如 phpMyAdmin,那么可以在这里提供他的 URL 模板,Bytebase就可以将控制台链接到相关的数据库和表的界面上。@@ -247,7 +253,7 @@ activity:reopened-issue: 重开工单resolved-issue: 解决工单canceled-issue: 取消工单- empty: ""+ empty: ''changed: 修改updated: 更新canceled: 取消@@ -261,8 +267,8 @@ activity:task: 任务issue:waiting-approval: 等待批准- opened-by-at: "{id} 由 {creator} 开启于 {time}"- commit-by-at: "{id} {title} 由 {author} 提交于 {time}"+ opened-by-at: '{id} 由 {creator} 开启于 {time}'+ commit-by-at: '{id} {title} 由 {author} 提交于 {time}'status-transition:modal:resolve: 解决工单?@@ -278,10 +284,10 @@ issue:subscribe: 订阅unsubscribe: 取消订阅subscriber: 没有订阅者 | 1 个订阅者 | {n} 个订阅者- apply-to-other-stages: "@:{'common.apply'}到其他@:{'common.stage'}"+ apply-to-other-stages: '@:{''common.apply''}到其他@:{''common.stage''}'add-sql-statement: 添加 SQL @:{'common.statement'}…optional-add-sql-statement: (可选)添加 SQL @:{'common.statement'}…- rollback-sql: "@:{'common.rollback'} SQL"+ rollback-sql: '@:{''common.rollback''} SQL'add-rollback-sql-statement: 添加 @:{'common.rollback'} SQL @:{'common.statement'}…edit-description: 编辑描述add-some-description: 添加一些描述…@@ -302,7 +308,7 @@ issue:updated: 更新于assignee: 审核人stage-select:- active: "{name}(活动中)"+ active: '{name}(活动中)'alter-schema:vcs-enabled: 该项目开启了基于 VCS 的版本管理,选择下面的数据库会将您导航到相应的 Git 仓库以创建 schema 变更。vcs-info: 代表项目开启了基于 VCS 的版本管理。选择该类项目下的数据库会将您导航到对应的 Git 仓库以创建 schema 变更。@@ -314,14 +320,14 @@ quick-action:create-db: 创建数据库choose-db: 选择数据库new-db: 创建数据库- add-instance: "@:common.add@:common.instance"- create-instance: "@:common.create@:common.instance"+ add-instance: '@:common.add@:common.instance'+ create-instance: '@:common.create@:common.instance'manage-user: 成员管理default-project: 默认项目- add-environment: "@:common.add@:common.environment"- create-environment: "@:common.create@:common.environment"- new-project: "@:common.new@:common.project"- create-project: "@:common.create@:common.project"+ add-environment: '@:common.add@:common.environment'+ create-environment: '@:common.create@:common.environment'+ new-project: '@:common.new@:common.project'+ create-project: '@:common.create@:common.project'edit-data: 编辑数据troubleshoot: 问题排查transfer-in-db: 转移数据库@@ -333,7 +339,7 @@ quick-action:transfer-in-db-alert: 您确定要转移 "{ dbName }" 到我们的项目中吗?create-db:new-database-name: 新数据库名称- reserved-db-error: "{databaseName} 是一个预留名称"+ reserved-db-error: '{databaseName} 是一个预留名称'db:encoding: 字符编码character-set: 字符集@@ -348,14 +354,13 @@ db:sync-status: 同步状态instance:select: 选择实例- new-database: "@:common.new@:common.database"+ new-database: '@:common.new@:common.database'syncing: 同步中 ...sync-now: 现在同步- create-migration-schema: "@:common.create@:common.migration @:{'common.schema'}"+ create-migration-schema: '@:common.create@:common.migration @:{''common.schema''}'missing-migration-schema: 缺少@:common.migration @:common.schemaunable-to-connect-instance-to-check-migration-schema: 无法连接到@:{'common.instance'}以检查@:{'common.migration'} @:{'common.schema'}- bytebase-relies-on-migration-schema-to-manage-version-control-based-schema-migration-for-databases-belonged-to-this-instance:- >-+ bytebase-relies-on-migration-schema-to-manage-version-control-based-schema-migration-for-databases-belonged-to-this-instance: >-Bytebase需要@:{'common.migration'} @:{'common.schema'}来管理属于这个@:{'common.instance'}的@:{'common.database'}的基于版本管理的 schema@:common.migration@@ -382,10 +387,10 @@ environment:quick-start:bookmark-an-issue: 收藏工单add-a-comment: 添加评论- visit-project: "@:common.visit@:common.projects"- visit-instance: "@:common.visit@:common.instances"- visit-database: "@:common.visit@:common.databases"- visit-environment: "@:common.visit@:common.environments"+ visit-project: '@:common.visit@:common.projects'+ visit-instance: '@:common.visit@:common.instances'+ visit-database: '@:common.visit@:common.databases'+ visit-environment: '@:common.visit@:common.environments'add-a-member: 添加成员notice:title: 快速入门导览已关闭@@ -464,7 +469,7 @@ database:在 Bytebase 中,一个数据库始终属于单个项目。\n\nBytebase 将定期同步每个实例的数据库信息。您还可以从仪表板创建新数据库。restored-from: 恢复于- database-name-is-restored-from-another-database-backup: "{0}恢复于另一个数据库备份"+ database-name-is-restored-from-another-database-backup: '{0}恢复于另一个数据库备份'sql-console: SQL控制台transfer-project: 转移项目alter-schema-in-vcs: 变更 Schema(VCS)@@ -499,6 +504,23 @@ database:updated-backup-webhook-url-for-database-props-database-name: 更新了数据库'{0}'的 webhook URL。last-sync-status: 最后一次同步在{1},状态为{0}version-control-enabled: 已启用版本控制+ restore-backup: 恢复备份'{0}'到一个新的数据库中+ nullable: 可为空+ restore: 恢复+ backup:+ enabled: 已启用+ disabled: 已禁用+ expression: 表达式+ position: 位置+ unique: Unique+ visible: Visible+ comment: 注释+ engine: 引擎+ row-count-estimate: 估计行数+ data-size: 数据大小+ index-size: 索引大小+ columns: 列+ indexes: 索引repository:branch-observe-file-change: Bytebase 跟踪文件变更的分支。branch-specify-tip: '诀窍: 可以使用诸如 "feature/*" 这样的通配符'@@ -516,7 +538,7 @@ repository:if-specified: 如果指定schema-path-example: Schema 路径样例git-provider: Git 提供方- version-control-status: "@.capitalize:common.version-control 已{status}"+ version-control-status: '@.capitalize:common.version-control 已{status}'version-control-description-file-path: 数据库迁移脚本存放在 {fullPath}。为了进行一次变更,开发者需要创建一个匹配 {fullPathTemplate} 文件路径格式的迁移脚本。version-control-description-branch: 当脚本审核通过并且合并到 {branch} 分支后,Bytebase 将自动发起一条流水线来执行新的 schema 变更。version-control-description-description-schema-path: 当 schema 变更完成后, Bytebase 会把变更后的最新 schema 回写到指定的 {schemaPathTemplate}。@@ -560,7 +582,7 @@ anomaly:该列表大约每 10 分钟刷新一次。table-search-placeholder: 搜索{type}或者环境table-placeholder: 很棒,没有检测到{type}异常!- tooltip: "{env} 环境有 {criticalCount} 个严重异常, {highCount} 个高等级异常和 {mediumCount} 个中等级异常"+ tooltip: '{env} 环境有 {criticalCount} 个严重异常, {highCount} 个高等级异常和 {mediumCount} 个中等级异常'types:connection-failure: 连接失败missing-migration-schema: 缺少迁移 Schema@@ -589,15 +611,15 @@ project:confirm: 不再出现search-bar-placeholder: 搜索项目名称table:- key: "@:common.key"- name: "@:common.name"+ key: '@:common.key'+ name: '@:common.name'created-at: 创建于create-modal:- project-name: "@:common.project @:common.name"- key: "@:common.key"+ project-name: '@:common.project @:common.name'+ key: '@:common.key'key-hint: ( 请使用大写字母来命名您的项目 )- cancel: "@:common.cancel"- confirm: "@:common.create"+ cancel: '@:common.cancel'+ confirm: '@:common.create'overview:view-all: 查看所有view-all-closed: 查看所有结束的工单@@ -623,7 +645,7 @@ project:title: 创建 webhookdesc: 为 {destination} 创建一个 webhookhow-to-protect: 您可以通过添加 'Bytebase' 到您的 webhook 关键字白名单中来保护您的 webhook- view-doc: "{destination} 的官方文档"+ view-doc: '{destination} 的官方文档'deletion:btn-text: Delete this webhookactivity-item:@@ -646,8 +668,8 @@ project:member-placeholder: 选择用户manage-member: 管理成员add-member: 添加成员- owner: "@.upper:commo project.setting.add-membern.role.owner"- developer: "@.upper:common.role.developer"+ owner: '@.upper:commo project.setting.add-membern.role.owner'+ developer: '@.upper:common.role.developer'archive:btn-text: 收藏这个@:common.projectrestore:@@ -704,4 +726,4 @@ archive:archived: 已归档project-search-bar-placeholder: 搜索@.lower:{'common.project'}的名称instance-bar-placeholder: 搜索@.lower:{'common.instance'}的名称- environment-bar-placeholder: 搜索@.lower:{'common.environment'}的名称\ No newline at end of file+ environment-bar-placeholder: 搜索@.lower:{'common.environment'}的名称diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vueindex d38662d1c4..4b356daf3d 100644--- a/frontend/src/views/InstanceDetail.vue+++ b/frontend/src/views/InstanceDetail.vue@@ -103,7 +103,7 @@<BBAlertv-if="state.showCreateMigrationSchemaModal":style="'INFO'"- :ok-text="'Create'"+ :ok-text="$t('common.create')":title="$t('instance.create-migration-schema') + '?'":description="$t(diff --git a/frontend/src/views/TableDetail.vue b/frontend/src/views/TableDetail.vueindex 00cebde684..0a0d21891a 100644--- a/frontend/src/views/TableDetail.vue+++ b/frontend/src/views/TableDetail.vue@@ -21,9 +21,11 @@<dlclass="flex flex-col space-y-1 md:space-y-0 md:flex-row md:flex-wrap">- <dt class="sr-only">Environment</dt>+ <dt class="sr-only">{{ $t("common.environment") }}</dt><dd class="flex items-center text-sm md:mr-4">- <span class="textlabel">Environment - </span>+ <span class="textlabel"+ >{{ $t("common.environment") }} - </span+ ><router-link:to="`/environment/${environmentSlug(database.instance.environment@@ -33,10 +35,12 @@{{ environmentName(database.instance.environment) }}</router-link></dd>- <dt class="sr-only">Instance</dt>+ <dt class="sr-only">{{ $t("common.instance") }}</dt><dd class="flex items-center text-sm md:mr-4"><InstanceEngineIcon :instance="database.instance" />- <span class="ml-1 textlabel">Instance - </span>+ <span class="ml-1 textlabel"+ >{{ $t("common.instance") }} - </span+ ><router-link:to="`/instance/${instanceSlug(database.instance)}`"class="normal-link"@@ -44,9 +48,11 @@{{ instanceName(database.instance) }}</router-link></dd>- <dt class="sr-only">Project</dt>+ <dt class="sr-only">{{ $t("common.project") }}</dt><dd class="flex items-center text-sm md:mr-4">- <span class="textlabel">Project - </span>+ <span class="textlabel"+ >{{ $t("common.project") }} - </span+ ><router-link:to="`/project/${projectSlug(database.project)}`"class="normal-link"@@ -54,14 +60,18 @@{{ projectName(database.project) }}</router-link></dd>- <dt class="sr-only">Database</dt>+ <dt class="sr-only">{{ $t("common.database") }}</dt><dd class="flex items-center text-sm md:mr-4">- <span class="textlabel">Database - </span>+ <span class="textlabel"+ >{{ $t("common.database") }} - </span+ ><router-link :to="`/db/${databaseSlug}`" class="normal-link">{{ database.name }}</router-link>- <span class="ml-2 textlabel">SQL Console</span>+ <span class="ml-2 textlabel">{{+ $t("database.sql-console")+ }}</span><buttonclass="ml-1 btn-icon"@click.prevent="@@ -82,7 +92,9 @@<!-- Description list --><dl class="grid grid-cols-1 gap-x-4 gap-y-4 sm:grid-cols-2"><div class="col-span-1 col-start-1">- <dt class="text-sm font-medium text-control-light">Engine</dt>+ <dt class="text-sm font-medium text-control-light">+ {{ $t("database.engine") }}+ </dt><dd class="mt-1 text-sm text-main">{{database.instance.engine == "POSTGRES" ||@@ -95,7 +107,7 @@<div class="col-span-1"><dt class="text-sm font-medium text-control-light">- Row count estimate+ {{ $t("database.row-count-estimate") }}</dt><dd class="mt-1 text-sm text-main">{{ table.rowCount }}@@ -103,14 +115,18 @@</div><div class="col-span-1 col-start-1">- <dt class="text-sm font-medium text-control-light">Data size</dt>+ <dt class="text-sm font-medium text-control-light">+ {{ $t("database.data-size") }}+ </dt><dd class="mt-1 text-sm text-main">{{ bytesToString(table.dataSize) }}</dd></div><div class="col-span-1">- <dt class="text-sm font-medium text-control-light">Index size</dt>+ <dt class="text-sm font-medium text-control-light">+ {{ $t("database.index-size") }}+ </dt><dd class="mt-1 text-sm text-main">{{database.instance.engine == "CLICKHOUSE" ||@@ -131,8 +147,8 @@<dt class="text-sm font-medium text-control-light">{{database.instance.engine == "POSTGRES"- ? "Encoding"- : "Character set"+ ? $t("db.encoding")+ : $t("db.character-set")}}</dt><dd class="mt-1 text-sm text-main">@@ -142,7 +158,7 @@<div class="col-span-1"><dt class="text-sm font-medium text-control-light">- Collation+ {{ $t("db.collation") }}</dt><dd class="mt-1 text-sm text-main">{{@@ -155,14 +171,18 @@</template><div class="col-span-1 col-start-1">- <dt class="text-sm font-medium text-control-light">Updated</dt>+ <dt class="text-sm font-medium text-control-light">+ {{ $t("common.updated-at") }}+ </dt><dd class="mt-1 text-sm text-main">{{ humanizeTs(table.updatedTs) }}</dd></div><div class="col-span-1">- <dt class="text-sm font-medium text-control-light">Created</dt>+ <dt class="text-sm font-medium text-control-light">+ {{ $t("common.created-at") }}+ </dt><dd class="mt-1 text-sm text-main">{{ humanizeTs(table.createdTs) }}</dd>@@ -172,7 +192,9 @@</div><div class="mt-6 px-6">- <div class="text-lg leading-6 font-medium text-main mb-4">Columns</div>+ <div class="text-lg leading-6 font-medium text-main mb-4">+ {{ $t("database.columns") }}+ </div><ColumnTable:column-list="table.columnList":engine="database.instance.engine"@@ -180,7 +202,9 @@</div><div v-if="database.instance.engine != 'SNOWFLAKE'" class="mt-6 px-6">- <div class="text-lg leading-6 font-medium text-main mb-4">Indexes</div>+ <div class="text-lg leading-6 font-medium text-main mb-4">+ {{ $t("database.indexes") }}+ </div><IndexTable :index-list="table.indexList" /></div></main>