Hreflang answers a different question from canonical
A multilingual website can offer the same information in Spanish, English, French and Brazilian Portuguese. Search engines need to understand which URLs are language or regional alternatives and which URL is the preferred version among duplicates.
These are not the same problem:
hreflangsignals that several URLs are alternate language or regional versions of content.rel="canonical"signals the preferred URL among duplicate or very similar pages.
For a genuinely translated page with its own language audience, the normal pattern is a self-referencing canonical plus hreflang links connecting its translations. Canonicalizing every translation to the Spanish original would undermine the purpose of having separate localized pages.
Google documents language alternates in its localized versions guide.
An example from our three-domain architecture
SEO Programático operates related language sites:
| Language | Domain | Blog index |
|---|---|---|
| Spanish | seo-programatico.com |
https://seo-programatico.com/blog |
| English | seo-programmatic.com |
https://seo-programmatic.com/blog |
| French | seo-programmatique.com |
https://seo-programmatique.com/blog |
| Brazilian Portuguese | Spanish domain with /pt-br/ paths |
Add a blog alternate only after the actual PT-BR blog URL is published and returns 200 |
The fact that the sites use different domains is not a problem. Hreflang can point across domains. What matters is that the translated pages genuinely correspond, the URLs are valid final destinations, and the alternates are implemented consistently.
For the three currently established blog indexes, a simplified head example would be:
<link rel="canonical" href="https://seo-programmatic.com/blog" />
<link rel="alternate" hreflang="es" href="https://seo-programatico.com/blog" />
<link rel="alternate" hreflang="en" href="https://seo-programmatic.com/blog" />
<link rel="alternate" hreflang="fr-FR" href="https://seo-programmatique.com/blog" />
<link rel="alternate" hreflang="x-default" href="https://seo-programatico.com/blog" />
This example is for the English blog index only. On the Spanish and French pages, change the canonical to each page's own URL while preserving the same alternate group. Add PT-BR only when that page exists and the other members of the group can reference it.
The six rules worth automating
1. Create translation pairs explicitly
A translation map should record which pages correspond. Don't infer equivalence from similar slugs or assume every original article has been translated. A Spanish guide about insurance regulation may not have a genuine English counterpart.
2. Include the current language in the alternate set
Every page should list its own URL as well as the real translated versions. Keep the alternate collection consistent across members of the group.
3. Make alternates reciprocal
If the English page identifies a French equivalent, the French page should identify the English page. Incomplete groups make the relationship harder for Google to interpret.
4. Use valid language and region codes
Examples include es, en, fr-FR, and pt-BR. A country code alone such as BR does not specify a language. Regional variants should exist because content meaningfully targets that region, not because it is technically easy to generate them.
5. Point to the final, indexable URL
An alternate URL should not be a broken link, an obsolete redirect, or a page that canonicalizes to an unrelated language. Resolve domain routing and redirects before building the map.
6. Keep the visible content localized
Translate navigation, titles, content, metadata, and calls to action where appropriate. hreflang labels do not turn an English page into a French page.
How to audit hreflang in a programmatic system
Create a test set that includes one blog index, a pillar page, a service page, and several industry guides. For each page, check HTTP status, redirect chain, canonical, html lang, rendered hreflang, local navigation, and sitemap inclusion.
Then verify that every claimed alternate actually exists and references its siblings. Do this automatically against your content registry rather than checking only the landing pages.
For thousands of generated pages, add build-time checks for duplicate URLs, missing translation pairs, malformed language tags, and alternate groups that point to another domain's redirect instead of the final URL.
Frequent mistakes
Canonicalizing all languages to one page. Distinct localized content usually needs a canonical on its own URL.
Building alternate sets from every language listed in a config. A locale setting doesn't mean that a translated article has actually been published.
Using hreflang to fix unrelated duplicate pages. Translation alternatives and same-language duplication need different decisions.
Changing domain structure before measuring impact. Domain migrations require redirects, sitemap planning, and monitoring. A broken blog card does not justify moving thousands of URLs.
Treating x-default as a fourth language. It is a fallback destination for users whose language or region isn't specifically matched.
Where this connects to our editorial system
Use the programmatic SEO pillar for the content strategy, and our indexation-at-scale guide for sitemap and discovery checks. The language switcher should point to actual translation equivalents, not merely the other domain's home page.
Good international SEO starts with a trustworthy translation inventory and ends with tested, reciprocal URLs.