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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user