From 24507cbbb92c2d867b3ee33d2fd19e4bf64a41d0 Mon Sep 17 00:00:00 2001 From: myl7 Date: Sun, 6 Feb 2022 19:26:11 +0800 Subject: [PATCH] add translation json and fix some missed hooks --- components/FolderGridLayout.tsx | 2 +- public/locales/en/common.json | 28 +++++++++++++++++++++++++++- public/locales/zh-CN/common.json | 26 +++++++++++++++++++++++++- 3 files changed, 53 insertions(+), 3 deletions(-) diff --git a/components/FolderGridLayout.tsx b/components/FolderGridLayout.tsx index 53e98ac..b0d0149 100644 --- a/components/FolderGridLayout.tsx +++ b/components/FolderGridLayout.tsx @@ -71,7 +71,7 @@ const FolderGridLayout = ({ return (
-
{folderChildren.length} items
+
{t('{{count}} item(s)', { count: folderChildren.length })}
four-oh-four.": "Oops, that's a <1>four-oh-four.", + "Press <2>F12 and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions.": "Press <2>F12 and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions.", "Search ...": "Search ...", + "Select all files": "Select all files", "Select file": "Select file", "Select files": "Select files", - "Size": "Size" + "Size": "Size", + "These tokens are used to authenticate yourself into password protected folders, ": "These tokens are used to authenticate yourself into password protected folders, ", + "This route (the folder itself and the files inside) is password protected. ": "This route (the folder itself and the files inside) is password protected. ", + "Weibo": "Weibo", + "clearing them means that you will need to re-enter the passwords again.": "clearing them means that you will need to re-enter the passwords again.", + "{{count}} item(s)": "{{count}} item", + "{{count}} item(s)_plural": "{{count}} items" } diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index c5afe04..980ae07 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -1,17 +1,30 @@ { + "- showing {{count}} page(s) of {{totalFileNum}} files -": "已显示 {{count}} 页,共 {{totalFileNum}} 个文件", "Actions": "操作", "Cancel": "取消", + "Cannot preview {{path}}": "无法预览 {{path}}", + "Clear all": "清楚所有密钥", + "Clear all tokens?": "清楚所有密钥?", + "Cleared all tokens": "已清楚所有密钥", + "Copied direct link to clipboard.": "已复制直链到剪贴板。", "Copied folder permalink.": "已复制文件夹永久链接。", "Copied raw file permalink.": "已复制文件永久链接。", + "Copy direct link": "复制直链", "Copy folder permalink": "复制文件夹永久链接", "Copy raw file permalink": "复制文件永久链接", + "Copy the permalink to the file to the clipboard": "复制文件永久链接到剪贴板", + "Download": "下载", "Download file": "下载此文件", "Download folder": "下载此文件夹", "Download selected files": "下载选定文件", + "Download the file directly through OneDrive": "直接从 OneDrive 下载文件", "Downloading folder, refresh page to cancel": "下载文件夹中,刷新页面以取消", "Downloading selected files, refresh page to cancel": "下载选定文件中,刷新页面以取消", "Downloading selected files...": "下载选定文件中...", "Downloading {{progress}}%": "已下载 {{progress}}%", + "Email": "电子邮件", + "Enter Password": "输入密码", + "Error: {{message}}": "错误:{{message}}", "Failed to download folder {{path}}: {{status}} {{message}} Skipped it to continue.": "下载文件夹 {{path}} 失败:{{status}} {{message}} 已忽略此错误并继续下载。", "Failed to download folder.": "下载文件夹失败。", "Failed to download selected files.": "下载选定文件失败。", @@ -19,14 +32,25 @@ "Finished downloading selected files.": "下载选定文件成功。", "Grid": "图格", "Home": "首页", + "If you know the password, please enter it below.": "如果您知晓密码,请在下面输入。", "Last Modified": "最后修改时间", "List": "列表", "Load more": "加载更多", "Loading ...": "加载中……", + "Logout": "注销", "Name": "文件名", "No more files": "加载完毕", + "Nothing here.": "无内容。", + "Oops, that's a <1>four-oh-four.": "Oops,这里是 <1>404 页面。", + "Press <2>F12 and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions.": "请按下 <2>F12 来打开开发者工具窗口以获取详细信息,或是到 <6>onedrive-vercel-index 社区讨论 处寻求帮助。", "Search ...": "搜索……", + "Select all files": "选择所有文件", "Select file": "选择此文件", "Select files": "选择以下文件", - "Size": "文件大小" + "Size": "文件大小", + "These tokens are used to authenticate yourself into password protected folders, ": "这些密钥是用来验证您的身份以访问密钥保护下的文件夹的,", + "This route (the folder itself and the files inside) is password protected. ": "此路由(此文件夹和其中的文件)是受密钥保护的。", + "Weibo": "微博", + "clearing them means that you will need to re-enter the passwords again.": "清除它们意味着下次访问时您需要重新输入密钥。", + "{{count}} item(s)": "{{count}} 个项目" }