diff --git a/src/app/[locale]/agenda/page.tsx b/src/app/[locale]/agenda/page.tsx new file mode 100644 index 0000000..78ba041 --- /dev/null +++ b/src/app/[locale]/agenda/page.tsx @@ -0,0 +1,78 @@ +import Script from 'next/script'; +import { getLocale, Lang, locales } from '@/i18n/locales'; +import { translations } from '@/i18n/translations'; +import { Metadata } from 'next'; +import Link from 'next/link'; +import { LanguageSelector } from '@/components/ui/language-selector'; + +export async function generateStaticParams() { + return locales.map((locale) => ({ locale })); +} + +export async function generateMetadata({ params }: { params: Promise<{ locale: Lang }> }): Promise { + const { locale } = await params; + const currentLocale = getLocale(locale); + const t = translations[currentLocale]; + return { + title: `${t.contribute.agenda.title} - ${t.hero.title}`, + description: t.about.description, + }; +} + +export default async function AgendaPage({ params }: { params: Promise<{ locale: Lang }> }) { + const { locale } = await params; + const currentLocale = getLocale(locale); + const t = translations[currentLocale]; + + return ( + <> +