Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Update email templates to improve clarity and consistency in messagin… (#26970)

Xiyuan Chen06649f6c2171
diff --git a/api/templates/without-brand/change_mail_confirm_new_template_en-US.html b/api/templates/without-brand/change_mail_confirm_new_template_en-US.html
index 69a8978f425..861b1bcdb66 100644
--- a/api/templates/without-brand/change_mail_confirm_new_template_en-US.html
+++ b/api/templates/without-brand/change_mail_confirm_new_template_en-US.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -96,7 +98,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -107,7 +110,7 @@
<div class="header"></div>
<p class="title">Confirm Your New Email Address</p>
<div class="description">
- <p class="content1">You’re updating the email address linked to your Dify account.</p>
+ <p class="content1">You're updating the email address linked to your account.</p>
<p class="content2">To confirm this action, please use the verification code below.</p>
<p class="content3">This code will only be valid for the next 5 minutes:</p>
</div>
@@ -118,5 +121,4 @@
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/change_mail_confirm_new_template_zh-CN.html b/api/templates/without-brand/change_mail_confirm_new_template_zh-CN.html
index e3e9e7c45a4..e411680e897 100644
--- a/api/templates/without-brand/change_mail_confirm_new_template_zh-CN.html
+++ b/api/templates/without-brand/change_mail_confirm_new_template_zh-CN.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -96,7 +98,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -107,7 +110,7 @@
<div class="header"></div>
<p class="title">确认您的邮箱地址变更</p>
<div class="description">
- <p class="content1">您正在更新与您的 Dify 账户关联的邮箱地址。</p>
+ <p class="content1">您正在更新与您的账户关联的邮箱地址。</p>
<p class="content2">为了确认此操作,请使用以下验证码。</p>
<p class="content3">此验证码仅在接下来的5分钟内有效:</p>
</div>
@@ -118,5 +121,4 @@
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/change_mail_confirm_old_template_en-US.html b/api/templates/without-brand/change_mail_confirm_old_template_en-US.html
index 9d79fa7ff92..9fe52255a53 100644
--- a/api/templates/without-brand/change_mail_confirm_old_template_en-US.html
+++ b/api/templates/without-brand/change_mail_confirm_old_template_en-US.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -96,7 +98,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -107,7 +110,7 @@
<div class="header"></div>
<p class="title">Verify Your Request to Change Email</p>
<div class="description">
- <p class="content1">We received a request to change the email address associated with your Dify account.</p>
+ <p class="content1">We received a request to change the email address associated with your account.</p>
<p class="content2">To confirm this action, please use the verification code below.</p>
<p class="content3">This code will only be valid for the next 5 minutes:</p>
</div>
@@ -118,5 +121,4 @@
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/change_mail_confirm_old_template_zh-CN.html b/api/templates/without-brand/change_mail_confirm_old_template_zh-CN.html
index 41f0839190b..98cbd2f0c62 100644
--- a/api/templates/without-brand/change_mail_confirm_old_template_zh-CN.html
+++ b/api/templates/without-brand/change_mail_confirm_old_template_zh-CN.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -96,7 +98,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -107,7 +110,7 @@
<div class="header"></div>
<p class="title">验证您的邮箱变更请求</p>
<div class="description">
- <p class="content1">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p>
+ <p class="content1">我们收到了一个变更您账户关联邮箱地址的请求。</p>
<p class="content3">此验证码仅在接下来的5分钟内有效:</p>
</div>
<div class="code-content">
@@ -117,5 +120,4 @@
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/invite_member_mail_template_en-US.html b/api/templates/without-brand/invite_member_mail_template_en-US.html
index b78a6a07600..f9157284fac 100644
--- a/api/templates/without-brand/invite_member_mail_template_en-US.html
+++ b/api/templates/without-brand/invite_member_mail_template_en-US.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>
+
<head>
<style>
body {
@@ -10,6 +11,7 @@
margin: 0;
padding: 0;
}
+
.container {
width: 504px;
min-height: 444px;
@@ -30,6 +32,7 @@
max-width: 63px;
height: auto;
}
+
.button {
display: block;
padding: 8px 12px;
@@ -45,46 +48,56 @@
font-size: 14px;
font-style: normal;
font-weight: 600;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
}
+
.button:hover {
background-color: #004AEB;
border: 0.5px solid rgba(16, 24, 40, 0.08);
box-shadow: 0px 1px 2px 0px rgba(9, 9, 11, 0.05);
}
+
.content {
color: #354052;
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
+
.content1 {
margin: 0;
padding-top: 24px;
padding-bottom: 12px;
font-weight: 500;
}
+
.content2 {
margin: 0;
padding-bottom: 12px;
}
</style>
</head>
+
<body>
<div class="container">
<div class="header"></div>
<div class="content">
<p class="content1">Dear {{ to }},</p>
- <p class="content2">{{ inviter_name }} is pleased to invite you to join our workspace on {{application_title}}, a platform specifically designed for LLM application development. On {{application_title}}, you can explore, create, and collaborate to build and operate AI applications.</p>
+ <p class="content2">{{ inviter_name }} is pleased to invite you to join our workspace on {{application_title}}, a
+ platform specifically designed for LLM application development. On {{application_title}}, you can explore,
+ create, and collaborate to build and operate AI applications.</p>
<p class="content2">Click the button below to log in to {{application_title}} and join the workspace.</p>
- <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none" class="button" href="{{ url }}">Login Here</a></p>
+ <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none"
+ class="button" href="{{ url }}">Login Here</a></p>
<p class="content2">Best regards,</p>
<p class="content2">{{application_title}} Team</p>
</div>
</div>
</body>
-</html>
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/transfer_workspace_new_owner_notify_template_en-US.html b/api/templates/without-brand/transfer_workspace_new_owner_notify_template_en-US.html
index a5758a2184e..659c285324e 100644
--- a/api/templates/without-brand/transfer_workspace_new_owner_notify_template_en-US.html
+++ b/api/templates/without-brand/transfer_workspace_new_owner_notify_template_en-US.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -80,10 +82,9 @@
<div class="description">
<p class="content1">You have been assigned as the new owner of the workspace "{{WorkspaceName}}".</p>
<p class="content2">As the new owner, you now have full administrative privileges for this workspace.</p>
- <p class="content3">If you have any questions, please contact [email protected].</p>
+ <p class="content3">If you have any questions, please contact support.</p>
</div>
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/transfer_workspace_new_owner_notify_template_zh-CN.html b/api/templates/without-brand/transfer_workspace_new_owner_notify_template_zh-CN.html
index 53bab92552f..f710dbb289e 100644
--- a/api/templates/without-brand/transfer_workspace_new_owner_notify_template_zh-CN.html
+++ b/api/templates/without-brand/transfer_workspace_new_owner_notify_template_zh-CN.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -80,10 +82,9 @@
<div class="description">
<p class="content1">您已被分配为工作空间“{{WorkspaceName}}”的新所有者。</p>
<p class="content2">作为新所有者,您现在对该工作空间拥有完全的管理权限。</p>
- <p class="content3">如果您有任何问题,请联系[email protected]。</p>
+ <p class="content3">如果您有任何问题,请联系支持团队。</p>
</div>
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/transfer_workspace_old_owner_notify_template_en-US.html b/api/templates/without-brand/transfer_workspace_old_owner_notify_template_en-US.html
index 3e7faeb01e5..149ec77aea3 100644
--- a/api/templates/without-brand/transfer_workspace_old_owner_notify_template_en-US.html
+++ b/api/templates/without-brand/transfer_workspace_old_owner_notify_template_en-US.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -97,7 +99,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -108,12 +111,14 @@
<div class="header"></div>
<p class="title">Workspace ownership has been transferred</p>
<div class="description">
- <p class="content1">You have successfully transferred ownership of the workspace "{{WorkspaceName}}" to {{NewOwnerEmail}}.</p>
- <p class="content2">You no longer have owner privileges for this workspace. Your access level has been changed to Admin.</p>
- <p class="content3">If you did not initiate this transfer or have concerns about this change, please contact [email protected] immediately.</p>
+ <p class="content1">You have successfully transferred ownership of the workspace "{{WorkspaceName}}" to
+ {{NewOwnerEmail}}.</p>
+ <p class="content2">You no longer have owner privileges for this workspace. Your access level has been changed to
+ Admin.</p>
+ <p class="content3">If you did not initiate this transfer or have concerns about this change, please contact
+ support immediately.</p>
</div>
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file
diff --git a/api/templates/without-brand/transfer_workspace_old_owner_notify_template_zh-CN.html b/api/templates/without-brand/transfer_workspace_old_owner_notify_template_zh-CN.html
index 31e3c231409..d7aed400684 100644
--- a/api/templates/without-brand/transfer_workspace_old_owner_notify_template_zh-CN.html
+++ b/api/templates/without-brand/transfer_workspace_old_owner_notify_template_zh-CN.html
@@ -42,7 +42,8 @@
font-family: Inter;
font-style: normal;
font-weight: 600;
- line-height: 120%; /* 28.8px */
+ line-height: 120%;
+ /* 28.8px */
}
.description {
@@ -51,7 +52,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
@@ -97,7 +99,8 @@
font-family: Inter;
font-style: normal;
font-weight: 400;
- line-height: 20px; /* 142.857% */
+ line-height: 20px;
+ /* 142.857% */
letter-spacing: -0.07px;
}
</style>
@@ -110,10 +113,9 @@
<div class="description">
<p class="content1">您已成功将工作空间“{{WorkspaceName}}”的所有权转移给{{NewOwnerEmail}}。</p>
<p class="content2">您不再拥有此工作空间的拥有者权限。您的访问级别已更改为管理员。</p>
- <p class="content3">如果您没有发起此转移或对此变更有任何疑问,请立即联系[email protected]。</p>
+ <p class="content3">如果您没有发起此转移或对此变更有任何疑问,请立即联系支持团队。</p>
</div>
</div>
</body>
-</html>
-
+</html>
\ No newline at end of file