From cd1fcdaa505d1edd02047b335adf9a0576b2257e Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 6 Sep 2021 17:46:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=80=9A=E7=9F=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/notice/Notification.vue | 6 +++--- .../components/notice/components/MentionedMeData.vue | 4 ++-- .../components/notice/components/SystemNoticeData.vue | 4 ++-- frontend/src/i18n/en-US.js | 4 ++++ frontend/src/i18n/zh-CN.js | 4 ++++ frontend/src/i18n/zh-TW.js | 4 ++++ 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/notice/Notification.vue b/frontend/src/business/components/notice/Notification.vue index 76900977aa..5fe7c46b97 100644 --- a/frontend/src/business/components/notice/Notification.vue +++ b/frontend/src/business/components/notice/Notification.vue @@ -25,10 +25,10 @@ custom-class="ms-drawer-task">
- + - + @@ -163,7 +163,7 @@ export default { } d.user = this.userMap[d.operator]; let message = d.user.name + getOperation(d.operation) + getResource(d) + ": " + d.resourceName; - let title = d.type === 'MENTIONED_ME' ? '@提到我的' : '系统通知'; + let title = d.type === 'MENTIONED_ME' ? this.$t('commons.mentioned_me_notice') : this.$t('commons.system_notice'); setTimeout(() => { this.$notify({ title: title, diff --git a/frontend/src/business/components/notice/components/MentionedMeData.vue b/frontend/src/business/components/notice/components/MentionedMeData.vue index f33a6ef6bd..54a99066e0 100644 --- a/frontend/src/business/components/notice/components/MentionedMeData.vue +++ b/frontend/src/business/components/notice/components/MentionedMeData.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/business/components/notice/components/SystemNoticeData.vue b/frontend/src/business/components/notice/components/SystemNoticeData.vue index 0e2eb1316a..a711ae4299 100644 --- a/frontend/src/business/components/notice/components/SystemNoticeData.vue +++ b/frontend/src/business/components/notice/components/SystemNoticeData.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index e92ac79bda..ed14511878 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -169,6 +169,10 @@ export default { scenario_case: "Scenario Case", task_center: "Task center", notice_center: "Notice center", + notice_count: 'Messages', + notice_tips: 'Only display the news within the last 3 months', + system_notice:'System', + mentioned_me_notice:'@Mentioned Me', all_module_title: "All module", create_user: 'Creator', run_message: "The task is being executed, please go to the task center to view the details", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 8608daaf25..dc5f70c599 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -170,6 +170,10 @@ export default { scenario_case: "场景用例", task_center: "任务中心", notice_center: "消息中心", + notice_count: '条消息', + notice_tips: '仅显示最近3个月的站内消息', + system_notice: '系统通知', + mentioned_me_notice: '@提到我的', all_module_title: "全部模块", create_user: '创建人', run_message: "任务执行中,请到任务中心查看详情", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 8d36781c1c..1fc6f1b622 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -170,6 +170,10 @@ export default { scenario_case: "場景用例", task_center: "任务中心", notice_center: "消息中心", + notice_count: '條消息', + notice_tips: '僅顯示最近3個月的站內消息', + system_notice: '系統通知', + mentioned_me_notice: '@提到我的', all_module_title: "全部模塊", create_user: "創建人", run_message: "任務執行中,請到任務中心查看詳情",