From 4def7abb86e78efbd702fd45a4144589f0739daa Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Thu, 29 Sep 2022 17:54:51 +0800 Subject: [PATCH] i18n: logs in bootstrapper and response code in middleware --- public/locales/en-US/common.json | 2 ++ public/locales/zh-CN/common.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/public/locales/en-US/common.json b/public/locales/en-US/common.json index e22968d..d6d25ed 100644 --- a/public/locales/en-US/common.json +++ b/public/locales/en-US/common.json @@ -15,6 +15,7 @@ "forEditorLocaleCode": "en", "artPlayerLocaleCode": "en", "errors": { + "401": "Please login.", "403": "You are not allowed to perform this action.", "404": "Resource not found.", "409": "Conflict. ({{message}})", @@ -65,6 +66,7 @@ "40057": "Available storage policy has changed, please refresh the file list and add this task again.", "40058": "This share does not exist or already expired.", "40069": "Incorrect password.", + "40070": "This share doesn't support preview.", "50001": "Database operation failed. ({{message}})", "50002": "Failed to sign the URL or request. ({{message}})", "50004": "I/O operation failed. ({{message}})", diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index 3b57eb7..90256cf 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -15,6 +15,7 @@ "forEditorLocaleCode": "zh-CN", "artPlayerLocaleCode": "zh-cn", "errors": { + "401": "请先登录", "403": "此操作被禁止", "404": "资源不存在", "409": "发生冲突 ({{message}})", @@ -65,6 +66,7 @@ "40057": "可用存储策略发生变化,请刷新文件列表并重新添加此任务", "40058": "分享不存在或已过期", "40069": "密码不正确", + "40070": "此分享无法预览", "50001": "数据库操作失败 ({{message}})", "50002": "URL 或请求签名失败 ({{message}})", "50004": "I/O 操作失败 ({{message}})",