--- 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 = "de"; const t = useTranslations(lang); const items = saleProducts(); ---
{t.sale.eyebrow}

{t.sale.title}

{t.sale.lead}

{items.length > 0 ? ( <>

{t.shop.resultCount(items.length)}

{items.map((p) => )}
) : (

{t.sale.empty}

)}