Multilingual sites have two jobs that are easy to confuse. The first is telling Google which page to show to which audience, which is what hreflang does. The second is describing what each page is about, which is what structured data does. Both fail in quiet ways. A missing return link means hreflang is ignored. A price in the wrong currency means a product snippet is wrong. A translated page carrying English markup means the markup does not match what visitors read.
This guide covers both, in the order most teams need them. It is based on how people search for this topic, including "schema for multilingual product pages", "structured data optimization", "hreflang tags", "hreflang implementation", "hreflang generator", "hreflang sitemap", "hreflang canonical" and "how to add schema markup", and on Google's and Schema.org's own documentation. Sources are listed at the end. An earlier version of this article suggested adding inLanguage to Product and LocalBusiness markup; that is not valid, and this version corrects it.
What structured data does on a multilingual site
Structured data is a standard format for describing a page's content. Google supports JSON-LD, Microdata and RDFa, and recommends JSON-LD. Its guidelines say not to add structured data about information that is not visible to the user, even if the information is accurate. For multilingual sites that rule has a direct consequence: each language page needs markup whose values match the language and content on that page.
Search engines use markup to understand entities (your organisation, products, articles, locations) and, for some types, to show rich results. It does not make a page rank higher on its own. The goal is accuracy, consistency and eligibility, not volume.
Hreflang or schema, which does what
| Hreflang | Structured data | |
|---|---|---|
| Purpose | Connects alternate language or region versions of a page | Describes the content and entities on one page |
| Where | HTML head, HTTP header or XML sitemap | JSON-LD in the page, usually in the head or body |
| Scope | Between pages | Within a page |
| Failure mode | Missing return links or wrong codes, so annotations are ignored | Markup that does not match the visible page, or invalid properties |
| Tested with | Crawl, Search Console, hreflang validators | Rich Results Test, Schema Markup Validator, Search Console enhancements |
Google does not use hreflang or the HTML lang attribute to detect the language of a page. It uses its own algorithms. Hreflang tells Google which alternate versions exist and how they relate.
How hreflang works
Google's documentation lists three equivalent methods, HTML link elements, HTTP headers and XML sitemaps. Use one consistently. The rules that matter most are:
- Each language version lists itself and all other versions. The set of links is identical on every version.
- Return links are required. If two pages do not point to each other, the tags are ignored.
- URLs must be fully qualified, including https, not /foo or //example.com/foo.
- Codes combine an ISO 639-1 language code with an optional ISO 3166-1 Alpha 2 region code, such as en, en-GB or de-CH. ISO 15924 script codes can be used for script variations.
- x-default names a fallback page for unmatched languages, such as a language selector.
Hreflang generator
"Hreflang generator" is one of the most searched terms in this area, so here is a working one. Enter your domain, choose a URL structure, list your locales and the page path, and it produces HTML tags and an XML sitemap block. It follows the rules above: self-reference, identical sets on every version, absolute URLs and an optional x-default.
Hreflang tag and sitemap generator
HTML link elements for the head of every version
XML sitemap entry for each version
Choosing the right codes
| Audience | Code | Use when |
|---|---|---|
| English, any region | en | One English version for everyone |
| English for the US and UK | en-US, en-GB | Spelling, currency or shipping differ |
| Spanish, any region | es | One Spanish version |
| Spanish for Mexico, Spain, US | es-MX, es-ES, es-US | Content, prices or legal terms differ by country |
| Portuguese for Brazil | pt-BR | Brazilian wording and pricing |
| Simplified and traditional Chinese | zh-Hans, zh-Hant | Script variants (ISO 15924) |
| Fallback | x-default | Language selector or global home page |
"Hreflang Spanish" is a common search because Spanish is the usual stumbling block. Do not create es-ES, es-MX and es-AR pages that are identical. If the content is the same, one es page with correct signals is simpler and safer.
Hreflang in the head, in headers or in a sitemap
| Method | Best for | Watch out for |
|---|---|---|
| HTML link elements | Small and medium sites, simple templates | Page weight grows with the number of languages, and tags must be in the rendered head |
| XML sitemap | Large sites, many languages, JavaScript front ends | Each URL needs its own entry with the full set, including itself |
| HTTP headers | PDFs and non-HTML files | Server configuration and testing |
Pick one method and generate it from one source of truth, such as a locale map in your CMS. Mixing methods that disagree is a common cause of confusion.
Hreflang and canonical tags
Hreflang and canonical tags answer different questions. Hreflang says "these are alternate versions for different audiences". Canonical says "this is the preferred URL for this content". Rules of thumb:
- Each language version should normally have a self-referencing canonical.
- Do not canonicalise translated pages to the original, because that tells Google to ignore them.
- Hreflang URLs should be the canonical URLs, not parameter or tracking variants.
- Same-language regional pages (such as en-US and en-GB with near-identical text) need extra care because they look like duplicates; make them genuinely different or consolidate them.
URL structure for multilingual sites
Google lists country-specific domains, subdomains with a generic top-level domain and subdirectories with a generic top-level domain as workable structures, and does not recommend URL parameters such as ?loc=de. Subdirectories are the easiest to manage for most teams because they share domain authority and one hosting setup. Google also says that the language-specific subdomains or folders in the URL are not used to determine the audience; you must explicitly map it, which is what hreflang does.
What to translate in your structured data
Because markup must match the visible page, every text value that is visible should be in the page's language. Values that identify things should stay stable.
| Property type | Examples | Rule across languages |
|---|---|---|
| Visible text | name, headline, description, FAQ question and answer text, breadcrumb names, review text | Translate to match the page |
| Identifiers | @id, sku, gtin, mpn, identifier, brand name | Keep the same across languages |
| URLs | url, image, mainEntityOfPage, breadcrumb item | Use the localised URL of the page and the shared image where appropriate |
| Prices | price, priceCurrency | Match what the visitor sees in that region, with ISO 4217 currency codes |
| Addresses and phone | PostalAddress, telephone, openingHoursSpecification | Use local formats and values for that location |
| Language | inLanguage (content types), availableLanguage (contact and services) | BCP 47 codes that match the page |
Valid language properties in schema markup
This is where many articles go wrong, including our earlier version of this one. Schema.org's inLanguage property is defined for BroadcastService, CommunicateAction, CreativeWork, Event, LinkRole, PronounceableText and WriteAction. Article, WebPage, BlogPosting and FAQPage are CreativeWork types, so they can use it. Product, Organization and LocalBusiness are not, so adding inLanguage to them is not valid.
| Need | Valid approach |
|---|---|
| Language of an article or page | inLanguage on Article, WebPage or BlogPosting, with a BCP 47 code such as fr or pt-BR |
| Languages a business or contact point supports | availableLanguage on ContactPoint (also used on Course, LodgingBusiness, ServiceChannel and TouristAttraction) |
| Link a translated article to its original | translationOfWork on the translation, workTranslation on the original (CreativeWork properties) |
| Language of a product page | Mark up the WebPage that contains the product with inLanguage, and describe the product with name and description in that language |
| Which language version of a business | Use the page's language and ContactPoint availableLanguage, not a made-up property |
JSON-LD examples for translated pages
A French article with a link to its English original:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"@id": "https://www.example.com/fr/guide/#article",
"headline": "Les meilleures destinations de voyage",
"inLanguage": "fr",
"mainEntityOfPage": "https://www.example.com/fr/guide/",
"translationOfWork": { "@id": "https://www.example.com/en/guide/#article" },
"publisher": { "@id": "https://www.example.com/#organization" }
}
</script>
An organisation with contact points in several languages, kept the same on every language page apart from the visible description:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "Example Co",
"url": "https://www.example.com/",
"contactPoint": [
{ "@type": "ContactPoint", "contactType": "customer service", "telephone": "+49-30-0000000", "availableLanguage": ["de", "en"] },
{ "@type": "ContactPoint", "contactType": "customer service", "telephone": "+33-1-00000000", "availableLanguage": ["fr"] }
]
}
</script>
A German product page with its own price and currency, and the language declared on the page rather than the product:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{ "@type": "WebPage", "@id": "https://www.example.com/de/laufschuhe/#page", "inLanguage": "de", "url": "https://www.example.com/de/laufschuhe/" },
{ "@type": "Product", "name": "Leichte Laufschuhe fuer Damen", "sku": "12345",
"brand": { "@type": "Brand", "name": "Example" },
"offers": { "@type": "Offer", "price": "79.99", "priceCurrency": "EUR", "availability": "https://schema.org/InStock", "url": "https://www.example.com/de/laufschuhe/" } }
]
}
</script>
These are illustrative. Validate every template with the Rich Results Test and the Schema Markup Validator before release, and confirm that values match the visible page.
Keeping entities consistent across languages
Schema for multilingual product pages
"Schema for multilingual product pages" is the query Google already shows this page for most often, so it deserves detail.
- Translate visible fields. name, description and any visible feature lists must match the page text.
- Use the local price and currency. Show and mark up the same amount and ISO 4217 code. Our guide to fixing currency discrepancies in Google rich results explains typical mismatches.
- Keep SKU and GTIN the same across languages so the product is one entity.
- Use the localised URL in the offer and make sure availability reflects stock in that market.
- Localise reviews. Mark up only reviews shown on the page, and be careful when showing reviews in another language.
- Match feeds. If you send products through Merchant Center, keep feed and markup values aligned for each country.
- Do not put inLanguage on Product. Put it on the page that contains it.
Local business and service markup by region
For multi-country businesses, create one location page per branch or market, each in its local language, with markup describing that location only. Google's LocalBusiness documentation lists recommended properties such as openingHoursSpecification, with times in hh:mm:ss format and days using full schema.org day names. Hours, phone numbers and addresses must follow local formats, and translated pages should not copy another country's details.
FAQ and other content markup in several languages
Write FAQ questions and answers in the language of each page and make sure they appear on the page, not just in the markup. The same applies to breadcrumbs, how-to steps, events and articles. Translating a headline but leaving the markup in English creates a mismatch Google may ignore or treat as an error. Rich result features change over time, so check Google's current documentation for each type before relying on a particular display.
Translation quality and machine translation
Do not publish raw machine translation without review. Markup values inherit any errors in the translation, including product names, units and legal phrases. Build a review step, keep a glossary of brand and product terms and test pages in each market with native speakers before launch. Our guide to multilingual PPC campaigns covers similar translation and localisation questions for paid search.
Common structured data and hreflang errors
| Error | Why it happens | Fix |
|---|---|---|
| Missing return links | One version was not updated when another was added | Generate tags from one locale list so every version always has the full set |
| Relative URLs in hreflang | Template uses /path/ | Use fully qualified https URLs |
| Wrong or invented codes | en-UK instead of en-GB, or made-up regions | Use ISO 639-1 and ISO 3166-1 Alpha 2 codes |
| Canonical points to the English page | Template copies the canonical from the source language | Self-referencing canonical on every version |
| Markup in the wrong language | Markup is generated from the source language | Build markup from the translated fields |
| Price in the wrong currency | Markup reads a default currency | Read price and currency from the same source as the visible price |
| Invalid properties | inLanguage on Product, Organization or LocalBusiness | Check each property against its type in Schema.org |
| Hreflang points to redirecting or noindex pages | Locale pages were moved or blocked | Point to final, indexable canonical URLs |
| Duplicate regional pages | en-US, en-GB and en-AU have identical text | Differentiate or consolidate |
How to test and monitor
- Crawl the site with a tool that checks hreflang reciprocity, codes, status codes and canonicals.
- Run Google's Rich Results Test on a sample of each template in each language.
- Use the Schema Markup Validator for general Schema.org validity.
- Watch Search Console enhancement reports for errors by type, and the performance report filtered by country and page.
- Inspect URLs to see the rendered HTML Google sees, especially if tags are injected by JavaScript.
- Re-test after releases, since templates and plugins often break markup.
How to add schema markup on common platforms
"How to add schema markup" is another frequent question. Choose the approach that keeps data close to the content:
- CMS with built-in schema such as modern SEO plugins. Check they generate language-specific values and not copies of the source language.
- Template-based JSON-LD that reads fields from your translated content model, which is the most reliable at scale.
- Tag manager injection, which can work for simple cases but may be fragile and is not ideal for large catalogues.
- Manual JSON-LD for a few important pages, with a review step after each content change.
Whichever route you choose, generate markup from the same translated fields as the visible page so they cannot drift apart.
Does schema markup help SEO and AI search
Schema markup helps search engines understand your content and can make pages eligible for rich results, but Google does not describe it as a direct ranking factor. For AI features, Google says no special files or schema are needed, and the same fundamentals apply, namely clear, accurate, helpful content that is accessible to crawlers. Markup still reduces ambiguity about entities across languages, which matters when the same brand appears in many markets. See our guide to generative engine optimization.
Structured data optimization services
If your catalogue is large, you sell in many markets, or your team lacks time to maintain templates, a specialist can audit templates, build a locale map, generate markup and hreflang from one source and set up monitoring. Ask to see how they validate across languages and how they keep markup in sync with content. Our SEO and AI search work includes technical audits like this.
A rollout plan
| Step | Action |
|---|---|
| 1 | Inventory every language and region, URL pattern and canonical rule |
| 2 | Create one locale map that drives hreflang, sitemaps and markup |
| 3 | Implement hreflang with one method and check reciprocity |
| 4 | Audit existing markup and remove invalid properties |
| 5 | Rebuild templates for Organization, WebPage or Article, Product, LocalBusiness and breadcrumbs with translated fields |
| 6 | Test samples in every language, then deploy |
| 7 | Monitor Search Console by country and fix issues monthly |
Checklist
- One locale map drives hreflang, sitemaps and markup
- Every language version lists itself and all others, with absolute URLs
- Valid ISO language and region codes, with x-default where useful
- Self-referencing canonical on each language version
- JSON-LD on every language page with translated visible values
- inLanguage only on content types that support it
- Stable @id values and identifiers across languages
- Price and currency match the visible page in each market
- Local business details follow local formats
- Rich Results Test, validator and crawl checks after each release
Sources
- Google Search Central: Tell Google about localized versions of your page. developers.google.com
- Google Search Central: Managing multi-regional and multilingual sites. developers.google.com
- Google Search Central: Intro to how structured data markup works. developers.google.com
- Schema.org: inLanguage. schema.org
- Schema.org: availableLanguage. schema.org
- Schema.org: workTranslation. schema.org
- Google Search Central: Local business structured data. developers.google.com