--- import Layout from "../../../layouts/Layout.astro"; import ProductCard from "../../../components/ProductCard.astro"; import { saleProducts } from "../../../data/products"; import type { Locale } from "../../../i18n/config"; import { useTranslations } from "../../../i18n/ui"; const lang: Locale = "en"; const t = useTranslations(lang); const items = saleProducts(); ---
{t.sale.eyebrow}

{t.sale.title}

{t.sale.lead}

{items.length > 0 ? (
{items.map((p) => )}
) : (

{t.sale.empty}

)}