"use client"; import { useTranslation } from "@/i18n/navigation"; export default function Hero() { const { t } = useTranslation("hero"); const stats = [ { value: "200+", labelKey: "resources" as const }, { value: "7 天", labelKey: "path" as const }, { value: "50+", labelKey: "tools" as const }, { value: "30+", labelKey: "destinations" as const }, { value: "100%", labelKey: "free" as const }, ]; return (
🎒 {t("badge")}

{t("title")}
{t("titleSuffix")}

{t("subtitle")}
{t("subtitleEn")}

{/* Stats marquee */}
{[...stats, ...stats].map((s, i) => (
{s.value} {t(`stats.${s.labelKey}`)}
))}
{[...stats, ...stats].map((s, i) => (
{s.value} {t(`stats.${s.labelKey}`)}
))}
); }