# Distinguish language from geotargeting

- Check 22.03 · International architecture · Critical
- Source: https://checklist-seo-geo.com/en/international-architecture/distinguish-language-from-geotargeting
- Separate what states a page's language (content, lang, hreflang) from what ties it to a country (region code, ccTLD, currency, address) and pick the right codes.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/international-architecture/distinguish-language-from-geotargeting.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Language and country are two different decisions. The language says who the page is for, through who can read it; the country says which market the offer applies to. A version can target a language without a country (`fr`: all French speakers) or a language within a country (`fr-CH`: French speakers in Switzerland). Once the task is done, every version of the site has an explicit role, correct codes and signals that do not contradict each other.

## Why it matters

Search engines handle the two notions separately. Google determines the language of a page from its visible content; it uses neither the `lang` attribute nor the URL for that. For the country, it relies on other signals: country-code domain (ccTLD, country code top-level domain), `hreflang` annotations with a region code, server location, local address and phone number, currency, links from local sites, a Business Profile. On the other hand, it ignores locale meta tags such as `geo.position`.

Mixing the two up leads to costly mistakes:

- a version annotated `fr-FR` when it serves all French speakers, which needlessly restricts it to France;
- strictly identical `fr-FR`, `fr-BE` and `fr-CH` versions, which become duplicates;
- a flag-based switcher where the British flag stands for English for an American or Indian visitor;
- a country code on its own (`hreflang="be"`) that Google cannot interpret, because a region code cannot be used without a language code.

Generative engines read the same clues in the text: the language of the sentences, currency, addresses, mentions of markets. A French-language page showing prices in euros without stating the country may be reused as is in an answer meant for a Canadian user. No rule guarantees the right interpretation, but explicit signals make it easier.

## What it improves

- **The right version in search results**: correct `hreflang` annotations help Google show the version suited to the user's language and country.
- **Fewer duplicates**: only versions that genuinely differ carry a country code.
- **More accurate AI answers**: explicit prices, currency and service area limit confusion between markets. Effect not guaranteed.
- **Accessibility**: a correct `lang` attribute lets screen readers choose the right pronunciation.
- **A clear interface**: a switcher that separates language and country avoids dead ends.

## How to check

For each version of the site, record the language of the content, the `lang` attribute, the `hreflang` codes and the country signals:

```bash
curl -s https://example.com/fr-ch/ | grep -o -i -E '<html[^>]*lang="[^"]*"|hreflang="[^"]*"' | sort -u
```

Expected result for a French-language Swiss version:

```txt
<html lang="fr-CH"
hreflang="de-CH"
hreflang="fr"
hreflang="fr-CH"
hreflang="x-default"
```

Then check visually:

- the visible content is entirely in the stated language;
- a region code only appears on a version whose offer differs (prices, currency, shipping, legal notices);
- no code is a country code on its own or an invalid code (`en-UK`, `fr-FR-CH`);
- the currency, phone number and address displayed match the stated country.

The URL Inspection tool in Search Console shows the canonical version selected by Google: if it points to another country version, Google considers the two pages duplicates.

## How to implement

### Step 1 — Classify each version: language only, or language and country

Start from the decisions made in [define target languages](https://checklist-seo-geo.com/en/international-architecture/define-target-languages) and [define target countries](https://checklist-seo-geo.com/en/international-architecture/define-target-countries), and fill in this table:

| Version | Target audience | What sets it apart | Type | Code |
|---|---|---|---|---|
| `/fr/` | All French speakers | Language | Language only | `fr` |
| `/fr-ch/` | French speakers in Switzerland | Prices in CHF, shipping, terms of sale | Language and country | `fr-CH` |
| `/de-ch/` | German speakers in Switzerland | Prices in CHF, shipping, terms of sale | Language and country | `de-CH` |
| `/en/` | English speakers everywhere | Language | Language only | `en` |
| `/pt-br/` | Portuguese speakers in Brazil | Vocabulary, prices in BRL | Language and country | `pt-BR` |

A simple rule: a version carries a country code only if its content would be wrong or unsuitable in another country with the same language.

### Step 2 — Choose valid codes

`hreflang` codes follow a format documented by Google: a two-letter ISO 639-1 language, optionally followed by a hyphen and an ISO 3166-1 alpha-2 region.

| Need | Correct code | Avoid |
|---|---|---|
| French, all countries | `fr` | `fr-FR` if the version also serves Belgium and Switzerland |
| English for the United Kingdom | `en-GB` | `en-UK` (see [use en-GB rather than en-UK](https://checklist-seo-geo.com/en/hreflang-regional-variants/use-en-gb-rather-than-en-uk)) |
| Simplified Chinese | `zh-Hans` | `zh-CN` if the version also serves Singapore |
| Fallback version or language selector | `x-default` | an ordinary language version picked without thinking |
| Belgium, without specifying the language | Impossible | `be`: a country code on its own is not valid |

The `lang` attribute of the `<html>` tag follows the BCP 47 standard and accepts the same forms (`fr`, `fr-CH`, `zh-Hans`). Use the same code in `lang` and in `hreflang` for a given page. The detailed checks are done in [validate ISO 639-1 language codes](https://checklist-seo-geo.com/en/hreflang-regional-variants/validate-iso-639-1-language-codes) and [validate ISO 3166-1 Alpha-2 country codes](https://checklist-seo-geo.com/en/hreflang-regional-variants/validate-iso-3166-1-alpha-2-country-codes).

### Step 3 — Set the language signals

Language is signaled first by the content, then by the markup:

- **Content entirely in the language**: text, navigation, footer, buttons, error messages, cookie banner. Google recommends a single language per page for the content and navigation.
- **`lang` attribute** on the `<html>` tag, and on passages in another language:

```html
<!doctype html>
<html lang="fr-CH">
  <head>
    <meta charset="utf-8">
    <title>Thé vert sencha bio, 100 g | Thé des Lisières Suisse</title>
  </head>
  <body>
    <p>Notre best-seller, que nos clients alémaniques appellent <span lang="de">Grüntee</span>.</p>
  </body>
</html>
```

- **`hreflang` annotations** to connect equivalent versions (see [implement hreflang for equivalent pages](https://checklist-seo-geo.com/en/hreflang-regional-variants/implement-hreflang-equivalent-pages)).

Google does not use `lang` to determine the language, but the attribute remains necessary for accessibility and is used by other tools. Bing has historically said it takes the `content-language` meta tag and the `lang` attribute into account: fill them in consistently, without expecting more from them.

### Step 4 — Set the country signals, and only on country versions

On a language-and-country version, make the country obvious:

- **Region code** in `hreflang` and in `lang`.
- **The country's currency and prices**, including taxes according to local practice.
- **Local contact details**: address, phone number in international format, opening hours.
- **Conditions**: the country's shipping, returns and legal notices.
- **Structured data**: consistent `priceCurrency` and `areaServed` (see [adapt areaServed and contact details](https://checklist-seo-geo.com/en/multilingual-linking-schema/adapt-areaserved-contact-details)).
- **Country-code domain** if you chose one: a ccTLD is a strong country signal, but it restricts the site to that country. The choice is made in [choose subdirectories, subdomains or country-code domains](https://checklist-seo-geo.com/en/international-architecture/choose-subdirectories-subdomains-country-code-domains).

On a language-only version, do the opposite: avoid asserting a default country. List the countries you ship to, display prices with an explicit currency ("12.90 EUR") and offer a choice of country at the moment it matters, for example in the cart.

> **Good to know:** Google treats some country-code domain extensions as generic, for example `.tv`, `.me` or `.co`, as well as the regional extensions `.eu` and `.asia`. They target no country.

### Step 5 — Separate language and country in the switcher

- Label languages by their name in their own language: "Français", "Deutsch", "English".
- Do not use a flag for a language. Keep flags, if you insist on them, for choosing the country.
- On a language-and-country site, offer two lists (country, then language) or a list of explicit combinations: "Switzerland — Français", "Switzerland — Deutsch".
- Point each entry to the equivalent page, with a crawlable HTML link (see [provide a crawlable language switcher](https://checklist-seo-geo.com/en/international-architecture/provide-crawlable-language-switcher)).

### Step 6 — Check consistency

Add four check columns to the table from step 1 and verify them on three pages per version:

| Version | Content language | `lang` | Page `hreflang` | Currency displayed | Compliant |
|---|---|---|---|---|---|
| `/fr/` | French | `fr` | `fr` | EUR, countries shipped to listed | Yes |
| `/fr-ch/` | French | `fr-CH` | `fr-CH` | CHF | Yes |
| `/de-ch/` | German, footer in French | `de-CH` | `de-CH` | CHF | No: translate the footer |

## Common mistakes

- **A region code on every version out of habit** (`fr-FR`, `en-US`) when they serve the whole language.
- **Identical country versions** that differ only by their `hreflang` code: Google groups them together and picks the canonical itself.
- **A country code on its own** in `hreflang` (`be`, `ch`): it is not valid.
- **`en-UK`** instead of `en-GB`.
- **Flags for languages** in the switcher.
- **Geographic meta tags** (`geo.region`, `geo.position`) added to target a country: Google ignores them.
- **An implicit currency** on a language-only version: visitors and AI assistants assume the wrong country.
- **Relying on server location** to target a country: it is one signal among others, blurred by CDNs.

## Frequently asked questions

### What is the difference between a multilingual site and a multi-regional site?

A multilingual site offers its content in several languages; a multi-regional site explicitly targets several countries. The two notions can be combined: a site can have an English version for all English speakers and two French versions, one for France and the other for Switzerland. Language is signaled by the content and hreflang; country by the region code, currency, local contact details or a country-code domain.

### Should you use fr or fr-FR in hreflang?

Use fr if your French version serves all French speakers, whatever their country. Keep fr-FR for sites that also have separate French versions for other countries, for example fr-BE or fr-CH, with different prices, currency or conditions. A region code on a version that serves the whole language needlessly restricts it and makes the annotations harder to maintain.

### Does Google use the lang attribute to identify a page's language?

No. Google determines the language of a page from its visible content and uses neither the lang attribute nor the URL for that. Fill in the lang attribute on the html tag anyway: screen readers use it for pronunciation, and other tools may read it. What matters most is content written entirely in a single language, navigation included.

### Can you target a country without changing language?

Yes. An fr-CH version can be in French just like the fr version, provided it genuinely differs for Switzerland: prices in Swiss francs, shipping conditions, legal notices, local contact details. Annotate it with the fr-CH code in hreflang and in the lang attribute. If nothing changes apart from the code, keep a single version, because identical pages would be treated as duplicates.

### Does a .fr domain target France better than example.com/fr/?

For the geographic signal, yes; for rankings, nothing is guaranteed. Google presents the country-code domain as a strong signal of the targeted country, whereas a subdirectory such as example.com/fr/ relies on hreflang with a country code, currency, address and local links. On the other hand, the .fr only targets France and has to build its own authority. For most sites, a subdirectory with explicit local signals is enough.

## Resources

- [Google Search Central: Managing multi-regional and multilingual sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites?hl=en)
- [Google Search Central: Localized versions of your pages (hreflang)](https://developers.google.com/search/docs/specialty/international/localized-versions?hl=en)
- [W3C: Choosing a language tag](https://www.w3.org/International/questions/qa-choosing-language-tags)
- [MDN: lang global attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/lang)

Next steps: [Choose subdirectories, subdomains or country-code domains](https://checklist-seo-geo.com/en/international-architecture/choose-subdirectories-subdomains-country-code-domains) and [Implement hreflang for equivalent pages](https://checklist-seo-geo.com/en/hreflang-regional-variants/implement-hreflang-equivalent-pages).
