81e1450e6b
Los <title> estáticos estaban en español fijo. Se migran 31 páginas a generateMetadata reutilizando la clave de título ya traducida de cada página (o del <h1>). Se traducen además los PageShell title hardcodeados de las 6 páginas CharServiceB y los títulos de download-client y changelogs (+ su mensaje de error). tsc/build OK, paridad es/en, <title> cambia por idioma. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import type { Metadata } from 'next'
|
|
import { getTranslations } from 'next-intl/server'
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
|
|
const { locale } = await params
|
|
const t = await getTranslations({ locale, namespace: 'Legal' })
|
|
return { title: t('legalNotice.title') }
|
|
}
|
|
|
|
export default async function LegalNoticePage() {
|
|
const t = await getTranslations('Legal')
|
|
return (
|
|
<div className="main-page">
|
|
<div className="middle-content">
|
|
<div className="body-content">
|
|
<div className="title-content">
|
|
<h1>{t('legalNotice.title')}</h1>
|
|
</div>
|
|
<div className="box-content">
|
|
<div className="body-box-content">
|
|
<p>{t('legalNotice.p1')}</p>
|
|
<br />
|
|
<p>{t('legalNotice.p2')}</p>
|
|
<br />
|
|
<p>{t('legalNotice.p3')}</p>
|
|
<br />
|
|
<p>{t('legalNotice.p4')}</p>
|
|
<br />
|
|
<p>{t('legalNotice.p5')}</p>
|
|
<br />
|
|
<p className="second-brown">{t('legalNotice.contactTitle')}</p>
|
|
<p>ultimowow.com</p>
|
|
<p>info@ultimowow.com</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|