feat: add Chinese translation for "Download" in i18n data

This commit is contained in:
2025-11-28 19:47:13 +08:00
parent 1a120d2378
commit 4f1600296c
2 changed files with 139 additions and 141 deletions

View File

@@ -261,6 +261,7 @@ export const i18nData = {
"File Size": "文件大小", "File Size": "文件大小",
"Tag": "标签", "Tag": "标签",
"Optional": "可选", "Optional": "可选",
"Download": "下载",
}, },
}, },
"zh-TW": { "zh-TW": {
@@ -525,6 +526,7 @@ export const i18nData = {
"File Size": "檔案大小", "File Size": "檔案大小",
"Tag": "標籤", "Tag": "標籤",
"Optional": "可選", "Optional": "可選",
"Download": "下載",
}, },
}, },
}; };

View File

@@ -465,7 +465,7 @@ function DeleteResourceDialog({
); );
} }
const context = createContext<() => void>(() => {}); const context = createContext<() => void>(() => { });
function Article({ resource }: { resource: ResourceDetails }) { function Article({ resource }: { resource: ResourceDetails }) {
return ( return (
@@ -898,8 +898,6 @@ function CloudflarePopup({ file }: { file: RFile }) {
<h3 className={"font-bold m-2"}> <h3 className={"font-bold m-2"}>
{downloadToken ? t("Verification successful") : t("Verifying your request")} {downloadToken ? t("Verification successful") : t("Verifying your request")}
</h3> </h3>
{!downloadToken && (
<>
<div className={"h-20 w-full"}> <div className={"h-20 w-full"}>
<Turnstile <Turnstile
siteKey={app.cloudflareTurnstileSiteKey!} siteKey={app.cloudflareTurnstileSiteKey!}
@@ -916,8 +914,6 @@ function CloudflarePopup({ file }: { file: RFile }) {
"Please check your network if the verification takes too long or the captcha does not appear.", "Please check your network if the verification takes too long or the captcha does not appear.",
)} )}
</p> </p>
</>
)}
{downloadToken && ( {downloadToken && (
<div className="p-2"> <div className="p-2">
<a <a