What a multilingual site must tell Google
A translated page is only useful in search if Google can answer three questions: which language is this page in, which other pages are the same page in another language, and which one should I show to this person? Three tools answer them: a separate URL per language, hreflang annotations, and a correct canonical on every page.
You can see the result on RPMVault's German home page: its own URL, a canonical that points to itself and the full hreflang set in the source.
1. One URL per language
RPMVault keeps English on the unprefixed URLs and puts every other language under its own prefix: /catalog in English, /de/catalog in German. I avoided cookies and Accept-Language redirects for content. If the same URL shows different languages depending on who asks, a crawler only ever sees one of them.
The language switcher links to real URLs. It does not just flip a client-side setting, so every language version can be crawled and shared.
2. One registry for canonical, hreflang and sitemap
The mistake I wanted to avoid was a sitemap that says one thing while the page header says another. So a single list describes every page that exists in several languages: its path and the locales it is available in. The canonical tag, the hreflang set and the sitemap entries are all generated from that list.
Because they share one source, they cannot disagree. Adding a page to the list adds it everywhere; leaving it out removes it everywhere.
3. hreflang rules that are easy to get wrong
- Every version lists every version, itself included. If the English page points to German but German does not point back, Google may ignore the pair.
- Use real language codes (
de,pt-BR), not country names or made-up codes. - Add an
x-defaultfor people whose language you do not cover. Mine points to the English page. - Each page's canonical points to itself, not to the English version. A German page canonicalized to English tells Google to drop the German page.
4. Pages you should not pretend to translate
RPMVault has about 20,000 catalog pages built from English specification data. Translating the buttons around that data does not make those pages different enough to deserve their own index entries. So catalog detail pages, brand hubs and comparison pairs open under a language prefix with a translated interface, but canonicalize to the English page. Marketing pages, tool pages, features, pricing and legal pages are fully localized and appear in every language's sitemap.
The rule I use: translate the page only if the substance changes, not only the chrome. Otherwise you hand Google thousands of near-duplicates.
5. How I check it
- Open a few pages in several languages and view the source: canonical on itself, the full
hreflangset, the right<html lang>. - Check that every URL in the sitemap returns 200 and is not redirected.
- In Search Console, watch the Page Indexing report in the weeks after a rollout, not only on day one.
Takeaway
Multilingual SEO is mostly bookkeeping. Give every language its own URL, generate the canonical, hreflang and sitemap from one place, and be honest about which pages are really different in each language. The rest is translation work.