From 18925293fbf9512ed5007d4a7c769083924bcd18 Mon Sep 17 00:00:00 2001 From: AnnAngela-work Date: Tue, 19 Apr 2022 10:48:20 +0800 Subject: [PATCH] Update en&zh-CN lang file with 1 new i18n entry --- src/languages/en.js | 7 +++++-- src/languages/zh-CN.js | 17 ++++++++++++++--- src/pages/StatusPage.vue | 4 ++-- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index 30f0b6ea..bd119747 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -424,7 +424,7 @@ export default { "Add New Status Page": "Add New Status Page", Slug: "Slug", "Accept characters:": "Accept characters:", - "startOrEndWithOnly": "Start or end with {0} only", + startOrEndWithOnly: "Start or end with {0} only", "No consecutive dashes": "No consecutive dashes", Next: "Next", "The slug is already taken. Please choose another slug.": "The slug is already taken. Please choose another slug.", @@ -450,7 +450,7 @@ export default { "Fingerprint:": "Fingerprint:", "No status pages": "No status pages", "Domain Name Expiry Notification": "Domain Name Expiry Notification", - "Proxy": "Proxy", + Proxy: "Proxy", "Date Created": "Date Created", onebotHttpAddress: "OneBot HTTP Address", onebotMessageType: "OneBot Message Type", @@ -459,4 +459,7 @@ export default { onebotUserOrGroupId: "Group/User ID", onebotSafetyTips: "For safety, must set access token", "PushDeer Key": "PushDeer Key", + "Footer Text": "Footer Text", + "Show Powered By": "Show Powered By", + "Domain Names": "Domain Names", }; diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js index 2f2d9f2b..f50f50f1 100644 --- a/src/languages/zh-CN.js +++ b/src/languages/zh-CN.js @@ -434,7 +434,7 @@ export default { "Add New Status Page": "添加新的状态页", Slug: "路径", "Accept characters:": "可接受的字符:", - "startOrEndWithOnly": "开头和结尾必须为 {0}", + startOrEndWithOnly: "开头和结尾必须为 {0}", "No consecutive dashes": "不能有连续的破折号", Next: "下一步", "The slug is already taken. Please choose another slug.": "该路径已被使用。请选择其他路径。", @@ -450,12 +450,23 @@ export default { "Fingerprint:": "指纹:", "No status pages": "无状态页", "Domain Name Expiry Notification": "域名到期时通知", - "Proxy": "代理", + Proxy: "代理", "Date Created": "创建于", onebotHttpAddress: "OneBot HTTP 地址", onebotMessageType: "OneBot 消息类型", onebotGroupMessage: "群聊", onebotPrivateMessage: "私聊", onebotUserOrGroupId: "群组/用户ID", - onebotSafetyTips: "出于安全原因,请务必设置AccessToken", + onebotSafetyTips: "出于安全原因,请务必设置 AccessToken", + topic: "Topic", + topicExplanation: "MQTT 传递给监控的 Topic", + successMessage: "成功时消息", + successMessageExplanation: "MQTT 成功时所传递的消息", + Customize: "自定义", + "Custom Footer": "自定义底部", + "Custom CSS": "自定义 CSS", + "PushDeer Key": "PushDeer Key", + "Footer Text": "底部自定义文本", + "Show Powered By": "显示 Powered By", + "Domain Names": "域名", }; diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index 4b94289c..8cda7ebb 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -52,7 +52,7 @@
@@ -707,7 +707,7 @@ export default { }, postIncident() { - if (this.incident.title == "" || this.incident.content == "") { + if (this.incident.title === "" || this.incident.content === "") { toast.error(this.$t("Please input title and content")); return; }