Improved user interface translations and clarity in Simplified

This commit is contained in:
oiov
2025-06-09 17:26:09 +08:00
parent 6a79ab40b1
commit cc4515cc6d
5 changed files with 32 additions and 12 deletions

View File

@@ -86,20 +86,22 @@ export default function PasswordPrompt() {
<div className="flex flex-1 items-center justify-center">
<div className="mx-3 w-full max-w-md rounded-lg bg-black/70 px-6 py-6 shadow-md shadow-neutral-900 backdrop-blur-xl md:px-[50px]">
<h1 className="mb-4 flex items-center justify-center gap-2 text-center text-2xl font-bold text-neutral-50">
Protected Link
{t("Protected Link")}
</h1>
<div className="mb-4 break-all text-left text-sm text-neutral-400">
<p>
You are attempting to access a password-protected link.{" "}
<strong>Please contact the owner to get the password.</strong>{" "}
Learn more about this from our{" "}
{t("You are attempting to access a password-protected link")}.{" "}
<strong>
{t("Please contact the owner to get the password")}
</strong>
. {t("Learn more about this from our")}{" "}
<Link
className="underline"
target="_blank"
href="/docs/short-urls#password"
>
docs
{t("docs")}
</Link>
.
</p>
@@ -124,7 +126,7 @@ export default function PasswordPrompt() {
{isError && (
<p className="mb-2 animate-fade-in text-left text-sm text-red-500">
Incorrect password. Please try again.
{t("Incorrect password")}! {t("Please try again")}.
</p>
)}
@@ -154,7 +156,7 @@ export default function PasswordPrompt() {
) : (
<Icons.unLock className="size-4" />
)}
{isPending ? "Unlocking..." : "Unlock"}
{isPending ? t("Unlocking") : t("Unlock")}
</Button>
</div>
</form>

View File

@@ -84,8 +84,8 @@ export async function getClientGeolocationWithIpApi(ip: string) {
region: res.region,
regionName: res.regionName,
city: res.city,
latitude: res.lat.toString(),
longitude: res.lon.toString(),
latitude: res.lat?.toString(),
longitude: res.lon?.toString(),
timezone: res.timezone,
};
}

View File

@@ -235,7 +235,16 @@
"Name": "Name",
"Activated Api Key users": "Activated Api Key users",
"total-requests-one-type": "Total requests of {type1}",
"total-requests-two-types": "Total requests of {type1} and {type2}"
"total-requests-two-types": "Total requests of {type1} and {type2}",
"Protected Link": "Protected Link",
"You are attempting to access a password-protected link": "You are attempting to access a password-protected link",
"Please contact the owner to get the password": "Please contact the owner to get the password",
"Learn more about this from our": "Learn more about this from our",
"docs": "docs",
"Incorrect password": "Incorrect password",
"Please try again": "Please try again",
"Unlock": "Unlock",
"Unlocking": "Unlocking..."
},
"Landing": {
"settings": "Settings",

View File

@@ -235,7 +235,16 @@
"Name": "名称",
"Activated Api Key users": "已启用 API Key 的用户",
"total-requests-one-type": "Open API 的 {type1} 的总请求数",
"total-requests-two-types": "Open API 的 {type1} 和 {type2} 的总请求数"
"total-requests-two-types": "Open API 的 {type1} 和 {type2} 的总请求数",
"Protected Link": "受保护的链接",
"You are attempting to access a password-protected link": "您正在尝试访问受密码保护的链接",
"Please contact the owner to get the password": "请联系链接所有者获取密码",
"Learn more about this from our": "了解更多请参考",
"docs": "文档",
"Incorrect password": "密码错误",
"Please try again": "请重试",
"Unlock": "解锁",
"Unlocking": "解锁中..."
},
"Landing": {
"settings": "设置",

File diff suppressed because one or more lines are too long