From e5fc107920e4f70273240e0bb02bc775cd4ac1a9 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Mar 2024 20:51:19 +0800 Subject: [PATCH] chore: tweak i18n locales --- web/src/components/TagList.tsx | 6 ++++- web/src/locales/en.json | 19 +------------- web/src/locales/zh-Hans.json | 42 ++++++++++++++--------------- web/src/locales/zh-Hant.json | 48 +++++++++++++--------------------- 4 files changed, 43 insertions(+), 72 deletions(-) diff --git a/web/src/components/TagList.tsx b/web/src/components/TagList.tsx index 2c686b98..de2571f8 100644 --- a/web/src/components/TagList.tsx +++ b/web/src/components/TagList.tsx @@ -146,8 +146,12 @@ const TagItemContainer: React.FC = (props: TagItemContain - showRenameTagDialog({ tag: tag.text })}>{t("common.rename")} + showRenameTagDialog({ tag: tag.text })}> + + {t("common.rename")} + + {t("common.delete")} diff --git a/web/src/locales/en.json b/web/src/locales/en.json index be439e30..53549697 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -179,18 +179,9 @@ "preference-section": { "theme": "Theme", "default-memo-visibility": "Default memo visibility", - "default-resource-visibility": "Default resource visibility", - "enable-folding-memo": "Enable folding memo", - "enable-double-click": "Enable double-click to edit", - "editor-font-style": "Editor font style", - "mobile-editor-style": "Mobile editor style", "default-memo-sort-option": "Memo display time", "telegram-user-id": "Telegram UserID", - "telegram-user-id-placeholder": "Send any words to your Telegram Bot as a memo", - "created_ts": "Created Time", - "updated_ts": "Updated Time", - "daily-review-time-offset": "Daily Review Time Offset", - "auto-collapse": "Auto Collapse" + "telegram-user-id-placeholder": "Send any words to your Telegram Bot as a memo" }, "storage-section": { "current-storage": "Current object storage", @@ -307,14 +298,6 @@ "only-public-supported": "* Only public memos can be embedded.", "copy": "Copy" }, - "heatmap": { - "memo-in": "memo in {{period}}", - "memos-in": "memos in {{period}}", - "memo-on": "{{amount}} memo on {{date}}", - "memos-on": "{{amount}} memos on {{date}}", - "day": "day", - "days": "days" - }, "about": { "about-memos": "About memos", "memos-description": "memos is a web-based note-taking application that you can use to write, organize, and share notes.", diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.json index 6172df51..c1252131 100644 --- a/web/src/locales/zh-Hans.json +++ b/web/src/locales/zh-Hans.json @@ -97,9 +97,9 @@ }, "embed-memo": { "copy": "复制", - "only-public-supported": "* 仅支持公开备忘录。", + "only-public-supported": "* 仅支持公开 Memo。", "text": "将以下代码复制并粘贴到您的博客或网站中。", - "title": "嵌入备忘录" + "title": "嵌入 Memo" }, "heatmap": { "day": "天中", @@ -115,30 +115,30 @@ }, "memo": { "archived-at": "存档于", - "archived-memos": "归档备忘录", + "archived-memos": "归档 Memo", "comment": { "no-comment": "没有评论", "self": "评论" }, "copy-link": "复制链接", - "delete-confirm": "您确定要删除此备忘录吗?此操作不可逆", - "delete-memo": "删除备忘录", + "delete-confirm": "您确定要删除此 Memo 吗?此操作不可逆", + "delete-memo": "删除 Memo", "embed": "嵌入", "fetch-more": "点击获取更多", "fetching-data": "正在获取数据…", - "no-archived-memos": "无存档的备忘录。", - "search-placeholder": "搜索备忘录", + "no-archived-memos": "无存档的 Memo。", + "search-placeholder": "搜索 Memos", "show-more": "查看更多", "view-detail": "查看详情", "visibility": { - "disabled": "公共备忘录已禁用", + "disabled": "公共 Memo 已禁用", "private": "私有", "protected": "工作区", "public": "公开" } }, "message": { - "change-memo-created-time": "更改备忘录创建时间", + "change-memo-created-time": "更改 Memo 创建时间", "change-resource-filename": "更改资源文件名", "click-to-save-the-image": "点击保存图片", "copied": "已复制", @@ -152,14 +152,14 @@ "invalid-resource-filename": "无效的资源文件名。", "login-failed": "登录失败", "maximum-upload-size-is": "允许的最大上传大小为 {{size}} MiB", - "memo-not-found": "找不到备忘录。", - "memo-updated-datetime": "备忘录创建日期时间已更改。", - "memos-ready": "所有备忘录已就绪", + "memo-not-found": "找不到 Memo", + "memo-updated-datetime": "Memo 创建日期时间已更改。", + "memos-ready": "所有 Memo 已就绪", "new-password-not-match": "新密码不匹配。", "no-data": "未找到任何数据。", "password-changed": "密码已修改", "password-not-match": "密码不一致。", - "private-only": "此备忘录仅自己可见。", + "private-only": "此 Memo 仅自己可见。", "resource-filename-updated": "资源文件名更改成功。", "resource-ready": "所有资源已就绪", "restored-successfully": "恢复成功", @@ -167,7 +167,7 @@ "succeed-copy-code": "复制代码到剪贴板成功。", "succeed-copy-content": "复制内容到剪贴板成功。", "succeed-copy-link": "复制链接到剪贴板成功。", - "succeed-copy-link-not-public": "复制链接到剪贴板成功,请注意本条备忘录在未登录情况下不可访问。", + "succeed-copy-link-not-public": "复制链接到剪贴板成功,请注意本条 Memo在未登录情况下不可访问。", "succeed-copy-resource-link": "复制资源链接到剪贴板成功。", "succeed-update-additional-script": "更新附加脚本成功。", "succeed-update-additional-style": "更新附加样式成功。", @@ -200,7 +200,7 @@ "delete-selected-resources": "删除选中资源", "fetching-data": "请求数据中…", "file-drag-drop-prompt": "将您的文件拖放到此处以上传文件", - "linked-amount": "链接的备忘录数量", + "linked-amount": "链接的 Memo 数量", "no-files-selected": "没有文件被选中", "no-resources": "没有资源。", "no-unused-resources": "无可删除的资源", @@ -222,10 +222,6 @@ "email-note": "可选", "export-memos": "导出 Memos", "nickname-note": "显示在横幅中", - "openapi-reset": "重置 OpenAPI 密钥", - "openapi-sample-post": "您好 #memos 来自 {{url}}", - "openapi-title": "OpenAPI", - "reset-api": "重置 API", "title": "账号信息", "update-information": "更新个人信息", "username-note": "用于登录" @@ -250,12 +246,12 @@ "auto-collapse": "自动折叠", "created_ts": "创建时间", "daily-review-time-offset": "每日回顾时间偏移", - "default-memo-sort-option": "备忘录显示时间", - "default-memo-visibility": "默认备忘录可见性", + "default-memo-sort-option": "Memo 显示时间", + "default-memo-visibility": "默认 Memo 可见性", "default-resource-visibility": "默认资源可见性", "editor-font-style": "编辑器字体样式", "enable-double-click": "开启双击编辑", - "enable-folding-memo": "开启折叠备忘录", + "enable-folding-memo": "开启折叠 Memo", "mobile-editor-style": "移动端编辑器样式", "telegram-user-id": "Telegram UserID", "telegram-user-id-placeholder": "向 Telegram 机器人发送任意消息以获取", @@ -337,7 +333,7 @@ "disable-password-login": "禁用密码登录", "disable-password-login-final-warning": "如果您知道自己在做什么,请输入 \"CONFIRM\"。", "disable-password-login-warning": "所有用户将无法使用密码登录。如果配置的身份提供程序失效,不在数据库中恢复此设置将无法登录。删除身份提供程序时也要格外小心", - "disable-public-memos": "禁用公共备忘录", + "disable-public-memos": "禁用公共 Memo", "display-with-updated-time": "根据最后修改时间顺序显示", "enable-password-login": "启用密码登录", "enable-password-login-warning": "启用所有用户的密码登录。如果希望用户同时使用单点登录和密码登录,请开启密码登录", diff --git a/web/src/locales/zh-Hant.json b/web/src/locales/zh-Hant.json index cd8ef711..9fdbb61d 100644 --- a/web/src/locales/zh-Hant.json +++ b/web/src/locales/zh-Hant.json @@ -96,9 +96,9 @@ }, "embed-memo": { "copy": "複製", - "only-public-supported": "* 只有公開的備忘錄可以被嵌入。", + "only-public-supported": "* 只有公開的 Memo 可以被嵌入。", "text": "將以下程式碼複製並貼上到您的網誌或網站中。", - "title": "嵌入備忘錄" + "title": "嵌入 Memo" }, "heatmap": { "day": "天", @@ -114,29 +114,29 @@ }, "memo": { "archived-at": "封存於", - "archived-memos": "封存的備忘錄", + "archived-memos": "封存的 Memo", "comment": { "no-comment": "沒有評論", "self": "評論" }, "copy-link": "複製連結", - "delete-confirm": "您確定要刪除此備忘錄?\n\n此操作無法逆轉", - "delete-memo": "刪除備忘錄", + "delete-confirm": "您確定要刪除此 Memo?\n\n此操作無法逆轉", + "delete-memo": "刪除 Memo", "embed": "內嵌", "fetch-more": "點此以載入更多", "fetching-data": "抓取資料中…", - "no-archived-memos": "無封存的備忘錄。", - "search-placeholder": "搜尋備忘錄", + "no-archived-memos": "無封存的 Memos", + "search-placeholder": "搜尋 Memos", "view-detail": "查看詳情", "visibility": { - "disabled": "公共備忘錄已停用", + "disabled": "公共 Memo 已停用", "private": "私人", "protected": "成員可見", "public": "公開給所有人" } }, "message": { - "change-memo-created-time": "變更備忘錄建立時間", + "change-memo-created-time": "變更 Memo 建立時間", "change-resource-filename": "變更資源檔名", "click-to-save-the-image": "點選以儲存圖片", "copied": "已複製", @@ -150,14 +150,14 @@ "invalid-resource-filename": "無效的檔名。", "login-failed": "登入失敗", "maximum-upload-size-is": "最大允許檔案上傳大小 {{size}} MiB", - "memo-not-found": "找不到備忘錄。", - "memo-updated-datetime": "備忘錄建立日期時間已變更。", - "memos-ready": "所有備忘錄已就緒", + "memo-not-found": "找不到 Memo", + "memo-updated-datetime": "Memo 建立日期時間已變更。", + "memos-ready": "所有 Memo 已就緒", "new-password-not-match": "新密碼不一致。", "no-data": "或許尋覓虛空,或者改換選擇之軌跡。", "password-changed": "密碼變更完成", "password-not-match": "密碼不一致。", - "private-only": "此備忘錄僅自己可見。", + "private-only": "此 Memo 僅自己可見。", "resource-filename-updated": "資源檔名變更成功。", "resource-ready": "所有資源已就緒", "restored-successfully": "還原成功", @@ -165,7 +165,7 @@ "succeed-copy-code": "複製程式碼到剪貼簿成功。", "succeed-copy-content": "複製內容到剪貼簿成功。", "succeed-copy-link": "複製連結到剪貼簿成功。", - "succeed-copy-link-not-public": "複製連結到剪貼簿成功,請注意本條備忘錄在未登入情況下無法瀏覽。", + "succeed-copy-link-not-public": "複製連結到剪貼簿成功,請注意本條 Memo 在未登入情況下無法瀏覽。", "succeed-copy-resource-link": "複製資源連結到剪貼簿成功。", "succeed-update-additional-script": "更新附加腳本成功。", "succeed-update-additional-style": "更新附加樣式成功。", @@ -219,10 +219,6 @@ "change-password": "變更密碼", "email-note": "非必須的", "nickname-note": "顯示於橫幅", - "openapi-reset": "重設 OpenAPI 金鑰", - "openapi-sample-post": "哈囉 來自 {{url}} 的 #memos", - "openapi-title": "OpenAPI", - "reset-api": "重設 API", "title": "帳號資訊", "update-information": "更新個人資訊", "username-note": "為登入用途" @@ -245,19 +241,11 @@ "preference": "偏好設定", "preference-section": { "auto-collapse": "自動摺疊", - "created_ts": "建立時間", - "daily-review-time-offset": "每日回顧時間偏移", - "default-memo-sort-option": "備忘錄顯示時間", - "default-memo-visibility": "備忘錄預設之能見度", - "default-resource-visibility": "資源預設之能見度", - "editor-font-style": "編輯器字體樣式", - "enable-double-click": "啟用連點兩次以編輯", - "enable-folding-memo": "啟用折疊備忘錄", - "mobile-editor-style": "行動版編輯器樣式", + "default-memo-sort-option": "Memo 顯示時間", + "default-memo-visibility": "Memo 預設之能見度", "telegram-user-id": "Telegram UserID", "telegram-user-id-placeholder": "向 Telegram 機器人傳送任意訊息以取得", - "theme": "主題", - "updated_ts": "更新時間" + "theme": "主題" }, "sso": "SSO", "sso-section": { @@ -333,7 +321,7 @@ "disable-password-login": "禁用密碼登入", "disable-password-login-final-warning": "如果你知道自己在做什麼,請輸入「CONFIRM」。", "disable-password-login-warning": "所有使用者將無法使用密碼登入。如果設定的身份識別提供者失效,不在資料庫中恢復此設定將無法登入。刪除身分識別提供者時也要特別小心❗", - "disable-public-memos": "停用公共備忘錄", + "disable-public-memos": "停用公共 Memo", "display-with-updated-time": "顯示更新時間", "enable-password-login": "啟用密碼登入", "enable-password-login-warning": "啟用所有使用者的密碼登入。如果希望使用者同時使用 SSO 和密碼登入,請開啟密碼登入",