From 794021f9a3d4849e7199187f2d9190325b3e7a0d Mon Sep 17 00:00:00 2001 From: adevopg Date: Tue, 14 Jul 2026 19:58:31 +0000 Subject: [PATCH] changelogs: fecha por idioma (es-ES / en-US) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit formatFecha usaba es-ES fijo; ahora recibe el locale y formatea en en-US para inglés. /en/changelogs muestra "July 14, 2026 at 07:55 PM"; /es/ en español. Co-Authored-By: Claude Opus 4.8 (1M context) --- web-next/app/[locale]/changelogs/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} {' · '}