From a3f89d07ea049c03a0fc6c280cb4dcdd933d3ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 27 May 2026 14:06:19 +0800 Subject: [PATCH] feat(i18n): add missing translation keys for error boundaries and copy messages Add keys for errorBoundary, pageErrorBoundary, router, and messages.copyEmpty in both zh and en locales. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- i18n/locales/en/common.json | 17 ++++++++++++++++- i18n/locales/zh/common.json | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/i18n/locales/en/common.json b/i18n/locales/en/common.json index 4ddd562..7e26906 100644 --- a/i18n/locales/en/common.json +++ b/i18n/locales/en/common.json @@ -24,7 +24,22 @@ }, "messages": { "copySuccess": "Copied to clipboard", - "copyError": "Copy failed" + "copyError": "Copy failed", + "copyEmpty": "Nothing to copy" + }, + "errorBoundary": { + "title": "Oops, something went wrong", + "description": "The app encountered an unexpected error. You can try refreshing the page or resetting the app.", + "refresh": "Refresh App", + "retry": "Retry" + }, + "pageErrorBoundary": { + "title": "This feature has encountered an error", + "description": "An internal script error occurred while loading or rendering this page. You can try again or switch to another tool from the navigation menu." + }, + "router": { + "notFound": "Page Not Found", + "notFoundDescription": "This feature is not available or has been removed in the current runtime ({{entryPointType}})." }, "textInputArea": { "clear": "Clear", diff --git a/i18n/locales/zh/common.json b/i18n/locales/zh/common.json index cd26eca..ef5dcf3 100644 --- a/i18n/locales/zh/common.json +++ b/i18n/locales/zh/common.json @@ -24,7 +24,22 @@ }, "messages": { "copySuccess": "已复制到剪贴板", - "copyError": "复制失败" + "copyError": "复制失败", + "copyEmpty": "无内容可复制" + }, + "errorBoundary": { + "title": "糟糕,出了点问题", + "description": "应用遇到了一些意外错误。您可以尝试刷新页面或重置应用。", + "refresh": "刷新应用", + "retry": "重新尝试" + }, + "pageErrorBoundary": { + "title": "该功能运行异常", + "description": "该页面在加载或渲染时遇到了内部脚本错误。您可以尝试重试,或者通过导航菜单切换到其他工具。" + }, + "router": { + "notFound": "页面未找到", + "notFoundDescription": "该功能在当前运行环境({{entryPointType}})下不可用或已被移除。" }, "textInputArea": { "clear": "清空",