import type { Metadata } from 'next' import { setRequestLocale } from 'next-intl/server' import { getCommits } from '@/lib/changelog' export const metadata: Metadata = { title: 'Changelogs' } function formatFecha(iso: string): string { if (!iso) return '' const d = new Date(iso) if (isNaN(d.getTime())) return iso return d.toLocaleString('es-ES', { day: 'numeric', month: 'long', year: 'numeric', hour: '2-digit', minute: '2-digit', }) } export default async function ChangelogsPage({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params setRequestLocale(locale) const commits = await getCommits(50) return (
No se pudieron cargar los cambios en este momento.
) : ( <> {commits.map((c) => ( ))}* Mostrando los últimos 50 cambios