add translation json and fix some missed hooks

This commit is contained in:
myl7 2022-02-06 19:26:11 +08:00
parent 2df258f791
commit 24507cbbb9
No known key found for this signature in database
GPG key ID: 04F1013B67177C88
3 changed files with 53 additions and 3 deletions

View file

@ -71,7 +71,7 @@ const FolderGridLayout = ({
return (
<div className="rounded bg-white dark:bg-gray-900 dark:text-gray-100">
<div className="flex items-center border-b border-gray-900/10 px-3 text-xs font-bold uppercase tracking-widest text-gray-600 dark:border-gray-500/30 dark:text-gray-400">
<div className="flex-1">{folderChildren.length} items</div>
<div className="flex-1">{t('{{count}} item(s)', { count: folderChildren.length })}</div>
<div className="flex p-1.5 text-gray-700 dark:text-gray-400">
<Checkbox
checked={totalSelected}

View file

@ -1,17 +1,31 @@
{
"- showing {{count}} page(s) of {{totalFileNum}} files -": "- showing {{count}} page of {{totalFileNum}} files -",
"- showing {{count}} page(s) of {{totalFileNum}} files -_plural": "- showing {{count}} pages of {{totalFileNum}} files -",
"Actions": "Actions",
"Cancel": "Cancel",
"Cannot preview {{path}}": "Cannot preview {{path}}",
"Clear all": "Clear all",
"Clear all tokens?": "Clear all tokens?",
"Cleared all tokens": "Cleared all tokens",
"Copied direct link to clipboard.": "Copied direct link to clipboard.",
"Copied folder permalink.": "Copied folder permalink.",
"Copied raw file permalink.": "Copied raw file permalink.",
"Copy direct link": "Copy direct link",
"Copy folder permalink": "Copy folder permalink",
"Copy raw file permalink": "Copy raw file permalink",
"Copy the permalink to the file to the clipboard": "Copy the permalink to the file to the clipboard",
"Download": "Download",
"Download file": "Download file",
"Download folder": "Download folder",
"Download selected files": "Download selected files",
"Download the file directly through OneDrive": "Download the file directly through OneDrive",
"Downloading folder, refresh page to cancel": "Downloading folder, refresh page to cancel",
"Downloading selected files, refresh page to cancel": "Downloading selected files, refresh page to cancel",
"Downloading selected files...": "Downloading selected files...",
"Downloading {{progress}}%": "Downloading {{progress}}%",
"Email": "Email",
"Enter Password": "Enter Password",
"Error: {{message}}": "Error: {{message}}",
"Failed to download folder {{path}}: {{status}} {{message}} Skipped it to continue.": "Failed to download folder {{path}}: {{status}} {{message}} Skipped it to continue.",
"Failed to download folder.": "Failed to download folder.",
"Failed to download selected files.": "Failed to download selected files.",
@ -19,14 +33,26 @@
"Finished downloading selected files.": "Finished downloading selected files.",
"Grid": "Grid",
"Home": "Home",
"If you know the password, please enter it below.": "If you know the password, please enter it below.",
"Last Modified": "Last Modified",
"List": "List",
"Load more": "Load more",
"Loading ...": "Loading ...",
"Logout": "Logout",
"Name": "Name",
"No more files": "No more files",
"Nothing here.": "Nothing here.",
"Oops, that's a <1>four-oh-four</1>.": "Oops, that's a <1>four-oh-four</1>.",
"Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.": "Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.",
"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"
}

View file

@ -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</1>.": "Oops这里是 <1>404</1> 页面。",
"Press <2>F12</2> and open devtools for more details, or seek help at <6>onedrive-vercel-index discussions</6>.": "请按下 <2>F12</2> 来打开开发者工具窗口以获取详细信息,或是到 <6>onedrive-vercel-index 社区讨论</6> 处寻求帮助。",
"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}} 个项目"
}