Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

fix: Optimize some multilingual translation issues

albertd1c7beb5dbab
diff --git a/core/frontend/src/i18n/lang/en.json b/core/frontend/src/i18n/lang/en.json
index 4d4f617d..1aac9823 100644
--- a/core/frontend/src/i18n/lang/en.json
+++ b/core/frontend/src/i18n/lang/en.json
@@ -397,6 +397,7 @@
}
},
"template": {
+ "template": "Template",
"createTpl": {
"sourceUrl": "Source Url",
"useAiTools": "Use AI tools to help you automatically generate email content and improve your work efficiency.",
diff --git a/core/frontend/src/i18n/lang/zh.json b/core/frontend/src/i18n/lang/zh.json
index ccc97a14..e3f8f690 100644
--- a/core/frontend/src/i18n/lang/zh.json
+++ b/core/frontend/src/i18n/lang/zh.json
@@ -401,6 +401,7 @@
}
},
"template": {
+ "template": "模板",
"createTpl": {
"sourceUrl": "引用域名",
"useAiTools": "使用人工智能工具帮您自动生成邮件内容,提升工作您的效率",
diff --git a/core/frontend/src/views/template/index.vue b/core/frontend/src/views/template/index.vue
index f85b3638..91f73c20 100644
--- a/core/frontend/src/views/template/index.vue
+++ b/core/frontend/src/views/template/index.vue
@@ -1,6 +1,6 @@
<template>
<div class="p-24px">
- <div class="bt-title">模板</div>
+ <div class="bt-title">{{ t('template.template') }}</div>
<bt-table-layout>
<template #toolsLeft>
<n-button type="primary" @click="handleAdd">
diff --git a/core/frontend/types/components.d.ts b/core/frontend/types/components.d.ts
index ab6a964e..3c22651b 100644
--- a/core/frontend/types/components.d.ts
+++ b/core/frontend/types/components.d.ts
@@ -40,6 +40,8 @@ declare module 'vue' {
NButtonGroup: typeof import('naive-ui')['NButtonGroup']
NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox']
+ NCollapse: typeof import('naive-ui')['NCollapse']
+ NCollapseItem: typeof import('naive-ui')['NCollapseItem']
NColorPicker: typeof import('naive-ui')['NColorPicker']
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDataTable: typeof import('naive-ui')['NDataTable']
@@ -54,11 +56,13 @@ declare module 'vue' {
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
+ NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid']
NIcon: typeof import('naive-ui')['NIcon']
NImage: typeof import('naive-ui')['NImage']
NInput: typeof import('naive-ui')['NInput']
NInputGroup: typeof import('naive-ui')['NInputGroup']
+ NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']
@@ -76,6 +80,7 @@ declare module 'vue' {
NScrollbar: typeof import('naive-ui')['NScrollbar']
NSelect: typeof import('naive-ui')['NSelect']
NSkeleton: typeof import('naive-ui')['NSkeleton']
+ NSlider: typeof import('naive-ui')['NSlider']
NSpin: typeof import('naive-ui')['NSpin']
NSwitch: typeof import('naive-ui')['NSwitch']
NTable: typeof import('naive-ui')['NTable']
@@ -89,4 +94,6 @@ declare module 'vue' {
UploadError: typeof import('./../src/components/base/bt-file-upload/UploadError.vue')['default']
UploadProgress: typeof import('./../src/components/base/bt-file-upload/UploadProgress.vue')['default']
UploadPrompt: typeof import('./../src/components/base/bt-file-upload/UploadPrompt.vue')['default']
- UploadSuccess: typeof import('./../src/components/bas
\ No newline at end of file
+ UploadSuccess: typeof import('./../src/components/base/bt-file-upload/UploadSuccess.vue')['default']
+ }
+}