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(frontend): backup panel title wording (#1838)
Liu Ji31e51f22f2cd
diff --git a/frontend/src/components/DatabaseBackupPanel.vue b/frontend/src/components/DatabaseBackupPanel.vueindex 4bad4fc438..52c5dbb229 100644--- a/frontend/src/components/DatabaseBackupPanel.vue+++ b/frontend/src/components/DatabaseBackupPanel.vue@@ -6,7 +6,7 @@<divclass="flex items-center text-lg leading-6 font-medium text-main">- {{ $t("database.automatic-weekly-backup") }}+ {{ automaticBackupTitle }}<span class="ml-1 text-success">{{ $t("database.backup.enabled") }}</span>@@ -79,7 +79,7 @@v-elseclass="flex items-center text-lg leading-6 font-medium text-main">- {{ $t("database.automatic-weekly-backup") }}+ {{ automaticBackupTitle }}<span class="ml-1 text-control-light">{{$t("database.backup.disabled")}}</span>@@ -462,6 +462,16 @@ export default defineComponent({return { hour, dayOfWeek };}+ const automaticBackupTitle = computed((): string => {+ if (backupPolicy.value === "DAILY" || backupPolicy.value === "WEEKLY") {+ return t("database.automatic-x-backup", {+ freq: t(`database.backup-policy.${backupPolicy.value}`).toLowerCase(),+ });+ }++ return t("database.automatic-backup");+ });+return {state,backupList,@@ -473,6 +483,7 @@ export default defineComponent({toggleAutoBackup,UrlChanged,updateBackupHookUrl,+ automaticBackupTitle,};},});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 29444f31a6..e2274e9f9f 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -201,8 +201,7 @@"view-doc": "View doc","backup-and-restore": "Backup and restore","write-only": "write only",- "pitr": "PITR",- "go-now": "Go now"+ "pitr": "PITR"},"error-page": {"go-back-home": "Go back home"@@ -485,9 +484,7 @@},"new-issue": "@:common.new @:common.issue","format-on-save": "Format on save",- "action-to-current-stage": "{action} current stage",- "edit-sql-statement-in-vcs": "This project has enabled VCS based version control. Please modify the SQL file in the corresponding Git repository, and commit it to create a new issue.",- "edit-sql-statement": "Edit SQL statement"+ "action-to-current-stage": "{action} current stage"},"alter-schema": {"vcs-enabled": "This project has enabled VCS based version control and selecting database below will navigate you to the corresponding Git repository to initiate the change process.",@@ -761,7 +758,8 @@"successfully-transferred-updateddatabase-name-to-project-updateddatabase-project-name": "Successfully transferred '{0}' to project '{1}'.","backup-name": "Backup name","create-backup": "Create backup",- "automatic-weekly-backup": "Automatic weekly backup",+ "automatic-x-backup": "Automatic {freq} backup",+ "automatic-backup": "Automatic backup","disable-automatic-backup": "Disable automatic backup","backuppolicy-backup-enforced-and-cant-be-disabled": "{0} backup enforced and can't be disabled","backup-policy": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 1bfadbfeb2..4d79e3bf4a 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -201,8 +201,7 @@"view-doc": "查看文档","backup-and-restore": "备份与恢复","write-only": "仅写入",- "pitr": "PITR",- "go-now": "立即前往"+ "pitr": "PITR"},"error-page": {"go-back-home": "回到主页"@@ -486,9 +485,7 @@},"new-issue": "@:common.new@:common.issue","format-on-save": "保存时格式化",- "action-to-current-stage": "{action}当前阶段",- "edit-sql-statement-in-vcs": "该项目开启了基于 VCS 的版本管理。请在对应的 Git 仓库修改 SQL 文件并提交,开启新的工单。",- "edit-sql-statement": "编辑 SQL 语句"+ "action-to-current-stage": "{action}当前阶段"},"alter-schema": {"vcs-enabled": "该项目开启了基于 VCS 的版本管理,选择下面的数据库会将您导航到相应的 Git 仓库以发起变更流程。",@@ -762,7 +759,8 @@"database-backup": "数据库备份","backup-name": "备份名称","create-backup": "创建备份",- "automatic-weekly-backup": "每周自动备份",+ "automatic-x-backup": "{freq}自动备份",+ "automatic-backup": "自动备份","disable-automatic-backup": "禁用自动备份","backuppolicy-backup-enforced-and-cant-be-disabled": "强制{0}备份,不能禁用","backup-policy": {