Detect locale with is-china-user and show English copy for non-Chinese visitors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric
2026-08-03 08:54:39 -05:00
parent 4c2101a87a
commit af0a430864
9 changed files with 233 additions and 20 deletions

View File

@@ -1,6 +1,11 @@
"use client";
import Link from "next/link";
import { useLocale } from "~/components/locale-provider";
export default function AboutPage() {
const { t } = useLocale();
return (
<div
className="flex min-h-dvh flex-col bg-[#f8f7fc] px-5 py-10"
@@ -10,16 +15,15 @@ export default function AboutPage() {
}}
>
<div className="mx-auto w-full max-w-md">
<h1 className="text-xl font-bold text-neutral-900">关于 Nomadro</h1>
<h1 className="text-xl font-bold text-neutral-900">{t.about.title}</h1>
<p className="mt-4 text-sm leading-relaxed text-neutral-600">
Nomadro 是中文数字游民操作系统,提供游民导航、地理套利、直播工具箱等模块,
帮助更多人从固定工位走向自由生活与自由收入。
{t.about.body}
</p>
<Link
href="/"
className="mt-8 inline-block text-sm text-violet-600 active:text-violet-800"
>
← 返回首页
{t.about.backHome}
</Link>
</div>
</div>