From 33f773fcd03212b12ec15d939e4fc5ae2ccdeb61 Mon Sep 17 00:00:00 2001 From: zsxeee Date: Wed, 13 Oct 2021 15:36:07 +0800 Subject: [PATCH] Move param out of the translation file --- src/languages/en.js | 2 +- src/languages/zh-CN.js | 2 +- src/pages/EditMonitor.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index f25af6414..fbba41a5d 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -78,7 +78,7 @@ export default { "Accepted Status Codes": "Accepted Status Codes", "Push URL": "Push URL", needPushEvery: "You should call this url every {0} seconds.", - pushOptionalParams: "Optional parameters: {'msg'}, {'ping'}", + pushOptionalParams: "Optional parameters: {0}", Save: "Save", Notifications: "Notifications", "Not available, please setup.": "Not available, please setup.", diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js index 2ff830251..a5db29027 100644 --- a/src/languages/zh-CN.js +++ b/src/languages/zh-CN.js @@ -66,7 +66,7 @@ export default { "Accepted Status Codes": "有效状态码", "Push URL": "推送链接", needPushEvery: "你需要每 {0} 秒调用一次。", - pushOptionalParams: "可选参数:{'msg'},{'ping'}", + pushOptionalParams: "可选参数:{0}", Save: "保存", Notifications: "消息通知", "Not available, please setup.": "无可用通道,请先设置", diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index ff707c2cc..78d716627 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -50,7 +50,7 @@
{{ $t("needPushEvery", [monitor.interval]) }}
- {{ $t("pushOptionalParams") }} + {{ $t("pushOptionalParams", ["msg, ping"]) }}