Skip to content

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

fix(i18n): extract phrases and translate (#1249)

Liu Ji988ca01b3041
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
index a8bc7b14b2..35ad635979 100644
--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue
+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
@@ -30,7 +30,7 @@
type="checkbox"
class="h-4 w-4 text-accent rounded disabled:cursor-not-allowed border-control-border focus:ring-accent"
/>
- <span class="textlabel">Format on save</span>
+ <span class="textlabel">{{ $t("issue.format-on-save") }}</span>
</label>
</template>
<template v-else>
@@ -52,7 +52,7 @@
type="checkbox"
class="h-4 w-4 text-accent rounded disabled:cursor-not-allowed border-control-border focus:ring-accent"
/>
- <span class="textlabel">Format on save</span>
+ <span class="textlabel">{{ $t("issue.format-on-save") }}</span>
</label>
<button
v-if="state.editing"
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index bfc6afa19d..d6f0ed5d9b 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -473,7 +473,8 @@
"description": "Perform schema change on a duplicated empty table. Sync the data and swap the table name after sync finishes. Applying migration on a large table directly would cause long-time unavailability {link}."
}
},
- "new-issue": "@:common.new @:common.issue"
+ "new-issue": "@:common.new @:common.issue",
+ "format-on-save": "Format on save"
},
"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.",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 13dd2fb37f..bf14d18995 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -473,7 +473,8 @@
"description": "在复制的空表上执行 schema 变更,开始从原表同步数据,并在同步完成之后交换表名。如果直接在原表上变更会导致长时间不可用 {link}。"
}
},
- "new-issue": "@:common.new@:common.issue"
+ "new-issue": "@:common.new@:common.issue",
+ "format-on-save": "保存时格式化"
},
"alter-schema": {
"vcs-enabled": "该项目开启了基于 VCS 的版本管理,选择下面的数据库会将您导航到相应的 Git 仓库以发起变更流程。",