Skip to content

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

chore: update mail delivery i18n (#5809)

boojack5448b175927b
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 7ac675e35d..830d6b2a7b 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -552,7 +552,7 @@
"not-show-till-next-release": "Don't show this till next version"
},
"mail-delivery": {
- "description": "Enable mail delivery to receive email notification by configuring SMTP server information.",
+ "description": "Configuring SMTP information will enable users to receive database reports via email, such as slow query weekly reports.",
"field": {
"smtp-server-host": "SMTP Server Host",
"smtp-server-port": "SMTP Server Port",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index e47028b8f1..42dd38afc2 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -388,7 +388,7 @@
"access-control": "数据访问控制",
"audit-log": "审计日志",
"custom-roles": "自定义角色",
- "mail-delivery": "邮件传输"
+ "mail-delivery": "邮件发送"
},
"profile": {
"email": "邮箱",
@@ -550,7 +550,7 @@
"not-show-till-next-release": "在下次更新前不要提醒我"
},
"mail-delivery": {
- "description": "通过配置 SMTP 服务器信息以接收相关问题的电子邮件通知。",
+ "description": "配置邮件信息可以让用户接收到数据库相关报告的电子邮件,如慢查询周报。",
"field": {
"smtp-server-host": "SMTP 服务器主机",
"from": "发送自",
diff --git a/frontend/src/views/SettingWorkspaceMailDelivery.vue b/frontend/src/views/SettingWorkspaceMailDelivery.vue
index 42f6fb15dc..94aae658b2 100644
--- a/frontend/src/views/SettingWorkspaceMailDelivery.vue
+++ b/frontend/src/views/SettingWorkspaceMailDelivery.vue
@@ -1,16 +1,16 @@
<template>
- <div class="w-full mt-4 space-y-4">
- <div class="pt-4 border-b textinfolabel p-2">
- {{ $t("settings.mail-delivery.description") }}
- <a
- class="normal-link inline-flex items-center"
- href="https://www.bytebase.com/docs/administration/mail-delivery?source=console"
- target="__BLANK"
- >
- {{ $t("common.learn-more") }}
- <heroicons-outline:external-link class="w-4 h-4 ml-1" />
- </a>
- </div>
+ <div class="border-b textinfolabel p-2">
+ {{ $t("settings.mail-delivery.description") }}
+ <a
+ class="normal-link inline-flex items-center"
+ href="https://www.bytebase.com/docs/administration/mail-delivery?source=console"
+ target="__BLANK"
+ >
+ {{ $t("common.learn-more") }}
+ <heroicons-outline:external-link class="w-4 h-4 ml-1" />
+ </a>
+ </div>
+ <div class="w-full space-y-4">
<div class="w-full flex flex-col">
<!-- Host and Port -->
<div class="w-full flex flex-row gap-4 mt-8">
@@ -171,16 +171,16 @@
<div class="textlabel pl-1">
{{ $t("settings.mail-delivery.field.send-test-email-to") }}
</div>
- <div class="flex flex-row">
+ <div class="flex flex-row justify-start items-center mt-2">
<BBTextField
- class="text-main h-max mt-2 w-80"
+ class="text-main h-max w-80"
:placeholder="'[email protected]'"
:value="state.testMailTo"
@input="(e: any) => state.testMailTo = e.target.value"
/>
<button
type="button"
- class="btn-primary inline-flex justify-center ml-5 mt-2"
+ class="btn-primary ml-5"
:disabled="
state.testMailTo === '' ||
state.isSendLoading ||