How Google decides which language version to show
A Spanish page only helps if Google shows it to people searching in Spanish. That depends on four things Google documents plainly.
Each language needs its own address
Google's guide to managing multilingual sites recommends using different URLs for each language version of a page, and advises against using cookies or browser settings to switch the language. A site that swaps text in place at one URL gives Google a single version to index.
Google reads the words on the page
The same guide says Google uses the visible content of the page to determine its language. It does not rely on code-level language labels. A page with Spanish body text under an English menu, footer and form sends a mixed signal, which is why we translate the whole template.
Hreflang connects the versions
Google's page on localized versions of your pages explains that hreflang tells Google about the variations of your content. It does not detect language. The rules are strict:
- Each language version must list itself as well as all other language versions.
- If two pages do not both point to each other, the tags are ignored.
- Codes follow a set format. Google supports es or es-US, and does not support es-419.
- An x-default value is recommended as the fallback for everyone else.
Let people choose
Google says to avoid automatically redirecting users from one language version to another, and to consider adding links between versions. A bilingual visitor may keep a phone set to English and still prefer to read in Spanish, so a visible switch on every page serves them better than a guess.
The W3C separately advises always declaring the default language on the html tag. The same care applies to your Google Business Profile and to local SEO in each language.
