--- import BaseLayout from "@/layouts/BaseLayout.astro"; import { getLangFromUrl, getTranslations } from "@/i18n"; import "@/styles/global.css"; export function getStaticPaths() { return [{ params: { lang: "zh" } }, { params: { lang: "en" } }]; } const lang = getLangFromUrl(Astro.url); const t = getTranslations(lang); const pageTitle = t.about.title; --- {t.about.title} {t.about.name} {t.about.slogan} {t.about.content.map((line: string) => )}
{t.about.slogan}