Files
g-butandClaude Opus 4.7 c6dff54a7b feat(seo): per-locale OpenGraph image
When German visitors share a /de/ page on social media, the preview
card now shows the German tagline ("Metabolische Psychiatrie &
Systemische Longevity") instead of English. Same for French and
Italian.

Extracted the shared OG render to lib/og/element.tsx (so both the root
English fallback and the new per-locale image render the same layout
with only the tagline string differing). The new app/[locale]/
opengraph-image.tsx generates on demand at the edge from the existing
meta.tagline translation key.

Verified via curl: each locale emits a distinct PNG (file sizes differ
by tagline length); /de page metadata correctly references
/de/opengraph-image; Next.js auto-emits hreflang link headers across
locales with x-default pointing to the root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 17:14:57 +02:00
..