// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { Metadata } from "next"; import { CatalogPage, formatDay, StatusBadge, } from "@/components/ProductCatalog"; import { getLocale } from "@/lib/locale.server"; import { getCatalogMessages, productSlugs, products, releases, } from "@/lib/products"; export async function generateMetadata(): Promise { const catalog = getCatalogMessages(await getLocale()); return { title: catalog.releasesTitle, description: catalog.releasesDescription, alternates: { canonical: "https://product.progmasoft.com/releases" }, }; } /** The latest release of each project, newest first, then those still without one. */ export default async function ReleasesPage() { const locale = await getLocale(); const catalog = getCatalogMessages(locale); const released = releases(); const waiting = productSlugs.filter((slug) => !products[slug].latestRelease); return (
{released.length === 0 ? (

{catalog.noReleases}

) : ( )} {waiting.length > 0 ? (

{catalog.statuses.development}

) : null}
); }