import { notFound } from 'next/navigation' import { getDict, isLocale, locales } from '@/i18n' import { loadContent, loadLegal } from '@/lib/content' import { buildHomeModel } from '@/lib/home-model' import { SectionPage } from '@/components/SectionPage' import Image from 'next/image' import Link from 'next/link' export const dynamic = 'force-dynamic' export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params if (!isLocale(locale)) notFound() const t = getDict(locale) return { title: `${t.projects.title} — ${t.siteName}`, description: t.metaDescription, alternates: { languages: Object.fromEntries(locales.map(l => [l, `/${l}/projects`])) } } } export default async function Page({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params if (!isLocale(locale)) notFound() const t = getDict(locale) const { home, news } = await loadContent(locale) const m = buildHomeModel(home, news, t) return 0}>
{`${t.book.cover}:

{t.book.author}

{t.book.title}

{t.book.paragraphs.map(text =>

{text}

)}{t.projects.more}
}