This commit is contained in:
2026-01-17 16:40:41 +01:00
parent 0f3eecbc48
commit 013049e631
7 changed files with 502 additions and 3 deletions

View File

@@ -9,8 +9,43 @@ export async function generateMetadata({params: {locale}}: {params: {locale: str
const t = await getTranslations({locale, namespace: 'Index.meta'});
return {
title: t('title'),
description: t('description')
title: {
default: t('title'),
template: `%s | ${t('title')}`
},
description: t('description'),
metadataBase: new URL('https://klz-cables.com'),
alternates: {
canonical: `/${locale}`,
languages: {
'de-DE': '/de',
'en-US': '/en',
},
},
openGraph: {
type: 'website',
locale: locale === 'de' ? 'de_DE' : 'en_US',
url: `https://klz-cables.com/${locale}`,
siteName: 'KLZ Cables',
title: t('title'),
description: t('description'),
},
twitter: {
card: 'summary_large_image',
title: t('title'),
description: t('description'),
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
};
}