diff --git a/web-next/app/[locale]/changelogs/page.tsx b/web-next/app/[locale]/changelogs/page.tsx index 93a6001..d268748 100644 --- a/web-next/app/[locale]/changelogs/page.tsx +++ b/web-next/app/[locale]/changelogs/page.tsx @@ -9,11 +9,11 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s return { title: t('changelogs.title') } } -function formatFecha(iso: string): string { +function formatFecha(iso: string, locale: string): string { if (!iso) return '' const d = new Date(iso) if (isNaN(d.getTime())) return iso - return d.toLocaleString('es-ES', { + return d.toLocaleString(locale === 'en' ? 'en-US' : 'es-ES', { day: 'numeric', month: 'long', year: 'numeric', @@ -52,7 +52,7 @@ export default async function ChangelogsPage({ {commits.map((c) => (

{c.title}

- {formatFecha(c.date)} + {formatFecha(c.date, locale)}

{c.author} {' ยท '}