diff --git a/extra/fs-rmSync.js b/extra/fs-rmSync.js
index 4c12f22e..aa45b6dc 100644
--- a/extra/fs-rmSync.js
+++ b/extra/fs-rmSync.js
@@ -4,7 +4,10 @@ const fs = require("fs");
* to avoid the runtime deprecation warning triggered for using `fs.rmdirSync` with `{ recursive: true }` in Node.js v16,
* or the `recursive` property removing completely in the future Node.js version.
* See the link below.
- * @link https://nodejs.org/docs/latest-v16.x/api/deprecations.html#dep0147-fsrmdirpath--recursive-true-
+ *
+ * @todo Once we drop the support for Node.js v14 (or at least versions before v14.14.0), we can safely replace this function with `fs.rmSync`, since `fs.rmSync` was add in Node.js v14.14.0 and currently we supports all the Node.js v14 versions that include the versions before the v14.14.0, and this function have almost the same signature with `fs.rmSync`.
+ * @link https://nodejs.org/docs/latest-v16.x/api/deprecations.html#dep0147-fsrmdirpath--recursive-true- the deprecation infomation of `fs.rmdirSync`
+ * @link https://nodejs.org/docs/latest-v16.x/api/fs.html#fsrmsyncpath-options the document of `fs.rmSync`
* @param {fs.PathLike} path Valid types for path values in "fs".
* @param {fs.RmDirOptions} [options] options for `fs.rmdirSync`, if `fs.rmSync` is available and property `recursive` is true, it will automatically have property `force` with value `true`.
*/
diff --git a/src/components/CertificateInfoRow.vue b/src/components/CertificateInfoRow.vue
index df726eb7..3ac22f3b 100644
--- a/src/components/CertificateInfoRow.vue
+++ b/src/components/CertificateInfoRow.vue
@@ -11,23 +11,23 @@
- Subject:
+ {{ $t("Subject:") }}
{{ formatSubject(cert.subject) }}
- Valid To:
+ {{ $t("Valid To:") }}
- Days Remaining:
+ {{ $t("Days Remaining:") }}
{{ cert.daysRemaining }}
- Issuer:
+ {{ $t("Issuer:") }}
{{ formatSubject(cert.issuer) }}
- Fingerprint:
+ {{ $t("Fingerprint:") }}
{{ cert.fingerprint }}
diff --git a/src/components/settings/ReverseProxy.vue b/src/components/settings/ReverseProxy.vue
index d35d5353..97db4d59 100644
--- a/src/components/settings/ReverseProxy.vue
+++ b/src/components/settings/ReverseProxy.vue
@@ -20,11 +20,16 @@
- Message:
+ {{ $t("Message:") }}
- (Download cloudflared from Cloudflare Website )
+
+ {{ $t("cloudflareWebsite") }}
+
@@ -44,7 +49,7 @@
{{ $t("Remove Token") }}
- Don't know how to get the token? Please read the guide:
+ {{ $t("Don't know how to get the token? Please read the guide:") }}
https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy-with-Cloudflare-Tunnel
@@ -61,7 +66,7 @@
- The current connection may be lost if you are currently connecting via Cloudflare Tunnel. Are you sure want to stop it? Type your current password to confirm it.
+ {{ $t("The current connection may be lost if you are currently connecting via Cloudflare Tunnel. Are you sure want to stop it? Type your current password to confirm it.") }}
@@ -79,10 +84,10 @@
- Other Software
+ {{ $t("Other Software") }}
diff --git a/src/languages/en.js b/src/languages/en.js
index 4ee696b9..a8462f3c 100644
--- a/src/languages/en.js
+++ b/src/languages/en.js
@@ -331,21 +331,21 @@ export default {
dark: "dark",
Post: "Post",
"Please input title and content": "Please input title and content",
- "Created": "Created",
+ Created: "Created",
"Last Updated": "Last Updated",
- "Unpin": "Unpin",
+ Unpin: "Unpin",
"Switch to Light Theme": "Switch to Light Theme",
"Switch to Dark Theme": "Switch to Dark Theme",
"Show Tags": "Show Tags",
"Hide Tags": "Hide Tags",
- "Description": "Description",
+ Description: "Description",
"No monitors available.": "No monitors available.",
"Add one": "Add one",
"No Monitors": "No Monitors",
"Untitled Group": "Untitled Group",
- "Services": "Services",
- "Discard": "Discard",
- "Cancel": "Cancel",
+ Services: "Services",
+ Discard: "Discard",
+ Cancel: "Cancel",
"Powered by": "Powered by",
shrinkDatabaseDescription: "Trigger database VACUUM for SQLite. If your database is created after 1.10.0, AUTO_VACUUM is already enabled and this action is not needed.",
serwersms: "SerwerSMS.pl",
@@ -379,4 +379,67 @@ export default {
proxyDescription: "Proxies must be assigned to a monitor to function.",
enableProxyDescription: "This proxy will not effect on monitor requests until it is activated. You can control temporarily disable the proxy from all monitors by activation status.",
setAsDefaultProxyDescription: "This proxy will be enabled by default for new monitors. You can still disable the proxy separately for each monitor.",
+ "Certificate Chain": "Certificate Chain",
+ Valid: "Valid",
+ Invalid: "Invalid",
+ AccessKeyId: "AccessKey ID",
+ SecretAccessKey: "AccessKey Secret",
+ PhoneNumbers: "PhoneNumbers",
+ TemplateCode: "TemplateCode",
+ SignName: "SignName",
+ "Sms template must contain parameters: ": "Sms template must contain parameters: ",
+ "Bark Endpoint": "Bark Endpoint",
+ WebHookUrl: "WebHookUrl",
+ SecretKey: "SecretKey",
+ "For safety, must use secret key": "For safety, must use secret key",
+ "Device Token": "Device Token",
+ Platform: "Platform",
+ iOS: "iOS",
+ Android: "Android",
+ Huawei: "Huawei",
+ High: "High",
+ Retry: "Retry",
+ Topic: "Topic",
+ "WeCom Bot Key": "WeCom Bot Key",
+ "Setup Proxy": "Setup Proxy",
+ "Proxy Protocol": "Proxy Protocol",
+ "Proxy Server": "Proxy Server",
+ "Proxy server has authentication": "Proxy server has authentication",
+ User: "User",
+ Installed: "Installed",
+ "Not installed": "Not installed",
+ Running: "Running",
+ "Not running": "Not running",
+ "Remove Token": "Remove Token",
+ Start: "Start",
+ Stop: "Stop",
+ "Uptime Kuma": "Uptime Kuma",
+ "Add New Status Page": "Add New Status Page",
+ Slug: "Slug",
+ "Accept characters:": "Accept characters:",
+ "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.",
+ "No Proxy": "No Proxy",
+ "HTTP Basic Auth": "HTTP Basic Auth",
+ "New Status Page": "New Status Page",
+ "Page Not Found": "Page Not Found",
+ "Reverse Proxy": "Reverse Proxy",
+ Backup: "Backup",
+ About: "About",
+ wayToGetCloudflaredURL: "(Download cloudflared from {0})",
+ cloudflareWebsite: "Cloudflare Website",
+ "Message:": "Message:",
+ "Don't know how to get the token? Please read the guide:": "Don't know how to get the token? Please read the guide:",
+ "The current connection may be lost if you are currently connecting via Cloudflare Tunnel. Are you sure want to stop it? Type your current password to confirm it.": "The current connection may be lost if you are currently connecting via Cloudflare Tunnel. Are you sure want to stop it? Type your current password to confirm it.",
+ "Other Software": "Other Software",
+ "For example: nginx, Apache and Traefik.": "For example: nginx, Apache and Traefik.",
+ "Please read": "Please read",
+ "Subject:": "Subject:",
+ "Valid To:": "Valid To:",
+ "Days Remaining:": "Days Remaining:",
+ "Issuer:": "Issuer:",
+ "Fingerprint:": "Fingerprint:",
+ "No status pages": "No status pages",
};
diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js
index 1f2439b0..5bed4700 100644
--- a/src/languages/zh-CN.js
+++ b/src/languages/zh-CN.js
@@ -88,8 +88,8 @@ export default {
Dark: "黑暗",
Auto: "自动",
"Theme - Heartbeat Bar": "主题 - 心跳栏",
- Normal: "正常显示",
- Bottom: "靠下显示",
+ Normal: "正常", // 此处还供 Gorush 的通知优先级功能使用,不应翻译为“正常显示”
+ Bottom: "靠下",
None: "不显示",
Timezone: "时区",
"Search Engine Visibility": "搜索引擎可见性",
@@ -373,4 +373,80 @@ export default {
"For safety, must use secret key": "出于安全考虑,必须使用加签密钥",
WeCom: "企业微信群机器人",
"WeCom Bot Key": "企业微信群机器人 Key",
+ PushByTechulus: "Push by Techulus",
+ gorush: "Gorush",
+ alerta: "Alerta",
+ alertaApiEndpoint: "API 接入点",
+ alertaEnvironment: "环境参数",
+ alertaApiKey: "API Key",
+ alertaAlertState: "报警时的严重性",
+ alertaRecoverState: "恢复后的严重性",
+ deleteStatusPageMsg: "您确认要删除此状态页吗?",
+ Proxies: "代理",
+ default: "默认",
+ enabled: "启用",
+ setAsDefault: "设为默认",
+ deleteProxyMsg: "您确认要在所有监控项中删除此代理吗?",
+ proxyDescription: "代理必须配置到至少一个监控项后才会工作。",
+ enableProxyDescription: "此代理必须启用才能对监控项的网络请求起作用。您可以通过修改激活状态,临时在所有监控项中禁用此代理。",
+ setAsDefaultProxyDescription: "此代理会对新创建的监控项默认激活,您仍可以在监控项配置中单独禁用此代理。",
+ "Proxy Protocol": "代理协议",
+ "Proxy Server": "代理服务器",
+ "Server Address": "服务器地址",
+ "Certificate Chain": "证书链",
+ Valid: "有效",
+ Invalid: "无效",
+ AccessKeyId: "AccessKey ID",
+ SecretAccessKey: "AccessKey Secret",
+ /* 以下为阿里云短信服务 API Dysms#SendSms 的参数 */
+ PhoneNumbers: "PhoneNumbers",
+ TemplateCode: "TemplateCode",
+ SignName: "SignName",
+ /* 以上为阿里云短信服务 API Dysms#SendSms 的参数 */
+ "Bark Endpoint": "Bark 接入点",
+ "Device Token": "Apple Device Token",
+ Platform: "平台",
+ iOS: "iOS",
+ Android: "Android",
+ Huawei: "华为",
+ High: "高",
+ Retry: "重试次数",
+ Topic: "Gorush Topic",
+ "Setup Proxy": "设置代理",
+ "Proxy server has authentication": "代理服务器启用了身份验证功能",
+ User: "用户名",
+ Installed: "已安装",
+ "Not installed": "未安装",
+ Running: "运行中",
+ "Not running": "未运行",
+ "Message:": "信息:",
+ wayToGetCloudflaredURL: "(可从 {0} 下载 cloudflared)",
+ cloudflareWebsite: "Cloudflare 网站",
+ "Don't know how to get the token? Please read the guide:": "不知道如何获取 Token?请阅读指南:",
+ "The current connection may be lost if you are currently connecting via Cloudflare Tunnel. Are you sure want to stop it? Type your current password to confirm it.": "如果您正在通过 Cloudflare Tunnel 访问网站,则停止可能会导致当前连接断开。您确定要停止吗?请输入密码以确认。",
+ "Other Software": "其他软件",
+ "For example: nginx, Apache and Traefik.": "例如:nginx、Apache 和 Traefik。",
+ "Please read": "请阅读",
+ "Remove Token": "移除 Token",
+ Start: "启动",
+ Stop: "停止",
+ "Uptime Kuma": "Uptime Kuma",
+ "Add New Status Page": "添加新的状态页",
+ Slug: "路径",
+ "Accept characters:": "可接受的字符:",
+ "startOrEndWithOnly": "开头和结尾必须为 {0}",
+ "No consecutive dashes": "不能有连续的破折号",
+ Next: "下一步",
+ "The slug is already taken. Please choose another slug.": "该路径已被使用。请选择其他路径。",
+ "No Proxy": "无代理",
+ "HTTP Basic Auth": "HTTP 基础身份验证",
+ "New Status Page": "新的状态页",
+ "Page Not Found": "状态页未找到",
+ "Reverse Proxy": "反向代理",
+ "Subject:": "颁发给:",
+ "Valid To:": "有效期至:",
+ "Days Remaining:": "剩余有效天数:",
+ "Issuer:": "颁发者:",
+ "Fingerprint:": "指纹:",
+ "No status pages": "无状态页",
};
diff --git a/src/pages/AddStatusPage.vue b/src/pages/AddStatusPage.vue
index 59c21ee9..e0200177 100644
--- a/src/pages/AddStatusPage.vue
+++ b/src/pages/AddStatusPage.vue
@@ -21,7 +21,9 @@
{{ $t("Accept characters:") }} a-z 0-9 -
- {{ $t("Start or end with") }} a-z 0-9 only
+
+ a-z 0-9
+
{{ $t("No consecutive dashes") }} --
diff --git a/src/pages/ManageStatusPage.vue b/src/pages/ManageStatusPage.vue
index a94956f5..4ea8bbf8 100644
--- a/src/pages/ManageStatusPage.vue
+++ b/src/pages/ManageStatusPage.vue
@@ -12,7 +12,7 @@
- No status pages
+ {{ $t("No status pages") }}