// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { Metadata } from "next"; import { CatalogPage, ProductGroup } from "@/components/ProductCatalog"; import { getLocale } from "@/lib/locale.server"; import { getCatalogMessages, productLanguages, productSlugs, products, } from "@/lib/products"; export async function generateMetadata(): Promise { const catalog = getCatalogMessages(await getLocale()); return { title: catalog.languagesTitle, description: catalog.languagesDescription, alternates: { canonical: "https://product.progmasoft.com/languages" }, }; } /** The projects grouped by the language they are written in. */ export default async function LanguagesPage() { const locale = await getLocale(); const catalog = getCatalogMessages(locale); return (
{productLanguages.map((language) => { const slugs = productSlugs.filter( (slug) => products[slug].language === language, ); return slugs.length === 0 ? null : ( ); })}
); }