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,12 @@
"use client";
import { Hero } from "~/components/sections/hero";
import { useLocale } from "~/components/locale-provider";
export default function HomePage() {
const { t } = useLocale();
const year = new Date().getFullYear();
return (
<div
className="flex min-h-dvh flex-col"
@@ -13,7 +19,7 @@ export default function HomePage() {
className="shrink-0 py-5 text-center text-[11px] text-neutral-400"
style={{ paddingBottom: "max(1.25rem, var(--safe-bottom))" }}
>
© {new Date().getFullYear()} Nomadro
{t.copyright.replace("{year}", String(year))}
</footer>
</div>
);