web

hreflang

Definition

hreflang is a tag that tells search engines a page has translated siblings in other languages, so each version ranks for its own audience.

hreflang is specified via `<link rel="alternate" hreflang="es-ES" href="…">` tags that enumerate every language variant of a page. Google uses them to serve the right version to the right audience and to avoid treating translated pages as duplicate content. The special value `x-default` points at the fallback version (ChromePing uses the English root). hreflang tags must be bidirectional: every sibling has to list the others. ChromePing emits them from buildPageMetadata's `alternates` parameter, which the SEO content system passes through from each post's supportedLocales list.