--- import { alternatePath, type Locale, t } from "@app/i18n"; import AppLayout from "~/layouts/AppLayout.astro"; export interface Props { locale: Locale; } const { locale } = Astro.props; const tr = (key: Parameters[1]) => t(locale, key); const otherLocale: Locale = locale === "zh-CN" ? "en" : "zh-CN"; const switchHref = alternatePath(Astro.url.pathname, otherLocale); const dashHref = locale === "zh-CN" ? "/zh-CN/dashboard" : "/en/dashboard"; const loginHref = locale === "zh-CN" ? "/zh-CN/auth/login" : "/en/auth/login"; ---

{tr("meta.tagline")}

{tr("home.heroLine1")}
{tr("home.heroLine2")}

{tr("home.subtitle")}

{tr("home.stackTitle")}

{tr("home.stackBody")}

{tr("home.layerTitle")}

{tr("home.layerBody")}