Free Google Ads & Meta ads audit for new clients. Book yours →
Web Zodiac homeGet a free audit
Menu
Multilingual structured data

Structured data for multilingual websites that stays correct in every language

A practical guide to schema markup and hreflang on sites with several languages or regions. What to translate, which properties are valid, how to keep entities consistent, how to avoid common errors, plus a working hreflang generator for HTML tags and sitemaps.

In short: To optimize structured data for a multilingual website, add JSON-LD to every language version, translate the visible values (names, descriptions, FAQ text) to match each page, keep identifiers and entity relationships consistent across languages, use valid language properties such as inLanguage on content types that support it, and connect the versions with correct hreflang annotations. Markup must describe what the visitor can see on that page, and hreflang tells Google which URL belongs to which language or region.

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

HreflangStructured data
PurposeConnects alternate language or region versions of a pageDescribes the content and entities on one page
WhereHTML head, HTTP header or XML sitemapJSON-LD in the page, usually in the head or body
ScopeBetween pagesWithin a page
Failure modeMissing return links or wrong codes, so annotations are ignoredMarkup that does not match the visible page, or invalid properties
Tested withCrawl, Search Console, hreflang validatorsRich 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.
Every language version points to itself and to all others /en-us/page/hreflang en-US /de/page/hreflang de /fr/page/hreflang fr x-default /page/ Each page carries the same set of tags, including a link to itself. Arrows run both ways.
A complete set. If any arrow is missing, Google may ignore the annotation between those two pages.

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

Illustrative output built in your browser; nothing is sent anywhere. Check the URL pattern against your real site and validate by crawling.

Choosing the right codes

AudienceCodeUse when
English, any regionenOne English version for everyone
English for the US and UKen-US, en-GBSpelling, currency or shipping differ
Spanish, any regionesOne Spanish version
Spanish for Mexico, Spain, USes-MX, es-ES, es-USContent, prices or legal terms differ by country
Portuguese for Brazilpt-BRBrazilian wording and pricing
Simplified and traditional Chinesezh-Hans, zh-HantScript variants (ISO 15924)
Fallbackx-defaultLanguage 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

MethodBest forWatch out for
HTML link elementsSmall and medium sites, simple templatesPage weight grows with the number of languages, and tags must be in the rendered head
XML sitemapLarge sites, many languages, JavaScript front endsEach URL needs its own entry with the full set, including itself
HTTP headersPDFs and non-HTML filesServer 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 typeExamplesRule across languages
Visible textname, headline, description, FAQ question and answer text, breadcrumb names, review textTranslate to match the page
Identifiers@id, sku, gtin, mpn, identifier, brand nameKeep the same across languages
URLsurl, image, mainEntityOfPage, breadcrumb itemUse the localised URL of the page and the shared image where appropriate
Pricesprice, priceCurrencyMatch what the visitor sees in that region, with ISO 4217 currency codes
Addresses and phonePostalAddress, telephone, openingHoursSpecificationUse local formats and values for that location
LanguageinLanguage (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.

NeedValid approach
Language of an article or pageinLanguage on Article, WebPage or BlogPosting, with a BCP 47 code such as fr or pt-BR
Languages a business or contact point supportsavailableLanguage on ContactPoint (also used on Course, LodgingBusiness, ServiceChannel and TouristAttraction)
Link a translated article to its originaltranslationOfWork on the translation, workTranslation on the original (CreativeWork properties)
Language of a product pageMark 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 businessUse 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

One shared organisation entity referenced by every language page Organization @idhttps://www.example.com/#organization English page German page French page inLanguage enText in Englishpublisher refers to @id inLanguage deText in German, EUR pricespublisher refers to @id inLanguage frText in Frenchpublisher refers to @id The entity stays the same while the page text changes by language.
Use stable @id values for your organisation, brand and products, so every language page describes the same entity.

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

ErrorWhy it happensFix
Missing return linksOne version was not updated when another was addedGenerate tags from one locale list so every version always has the full set
Relative URLs in hreflangTemplate uses /path/Use fully qualified https URLs
Wrong or invented codesen-UK instead of en-GB, or made-up regionsUse ISO 639-1 and ISO 3166-1 Alpha 2 codes
Canonical points to the English pageTemplate copies the canonical from the source languageSelf-referencing canonical on every version
Markup in the wrong languageMarkup is generated from the source languageBuild markup from the translated fields
Price in the wrong currencyMarkup reads a default currencyRead price and currency from the same source as the visible price
Invalid propertiesinLanguage on Product, Organization or LocalBusinessCheck each property against its type in Schema.org
Hreflang points to redirecting or noindex pagesLocale pages were moved or blockedPoint to final, indexable canonical URLs
Duplicate regional pagesen-US, en-GB and en-AU have identical textDifferentiate or consolidate

How to test and monitor

  1. Crawl the site with a tool that checks hreflang reciprocity, codes, status codes and canonicals.
  2. Run Google's Rich Results Test on a sample of each template in each language.
  3. Use the Schema Markup Validator for general Schema.org validity.
  4. Watch Search Console enhancement reports for errors by type, and the performance report filtered by country and page.
  5. Inspect URLs to see the rendered HTML Google sees, especially if tags are injected by JavaScript.
  6. 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.

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

StepAction
1Inventory every language and region, URL pattern and canonical rule
2Create one locale map that drives hreflang, sitemaps and markup
3Implement hreflang with one method and check reciprocity
4Audit existing markup and remove invalid properties
5Rebuild templates for Organization, WebPage or Article, Product, LocalBusiness and breadcrumbs with translated fields
6Test samples in every language, then deploy
7Monitor 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
Rahil Joshi, founder of Web Zodiac

More than ten years in digital marketing, starting in SEO and now running Google Ads, Meta ads and ChatGPT ads for clients in the US, UK, Australia and India. About Rahil · Upwork profile

Sources

  1. Google Search Central: Tell Google about localized versions of your page. developers.google.com
  2. Google Search Central: Managing multi-regional and multilingual sites. developers.google.com
  3. Google Search Central: Intro to how structured data markup works. developers.google.com
  4. Schema.org: inLanguage. schema.org
  5. Schema.org: availableLanguage. schema.org
  6. Schema.org: workTranslation. schema.org
  7. Google Search Central: Local business structured data. developers.google.com
Questions

Frequently asked questions

What is hreflang?

Hreflang is an annotation that tells Google about the language and optional region of alternate versions of a page. You can add it as HTML link elements, HTTP headers or in an XML sitemap, and every version must list itself and all the others.

How do I implement hreflang?

Choose one method, list every language version including the page itself on each page, use fully qualified URLs, ISO language codes with optional region codes, and add an x-default for a fallback page. A generator can build the tags, but validate them by crawling.

Do I need separate structured data for each language?

Yes. Each language page should carry its own markup with values in that page's language, because markup must match the visible content.

Should I use inLanguage in schema markup?

Use it on content types that support it, such as Article, WebPage and other CreativeWork types, with a BCP 47 code like fr or pt-BR. It is not a property of Product, Organization or LocalBusiness, so do not add it there.

How do I handle prices and currencies in different regions?

Mark up the price and currency shown to visitors on each regional page, with an ISO 4217 currency code. Keep markup and visible price in sync and make sure feeds agree.

Does schema markup help SEO?

It helps search engines understand your content and can make pages eligible for rich results, but it is not a direct ranking boost. Accuracy matters more than quantity.

Does hreflang work with canonical tags?

Yes, but each language version should normally have a self-referencing canonical, and hreflang should point to canonical URLs. Do not canonicalise all languages to one page.

What language code should I use for Spanish?

Use es for Spanish in general, or add a region such as es-MX, es-ES or es-US when content differs by country. Only use region codes if you really have different regional versions.

What does x-default mean?

It marks a fallback page for users whose language or region does not match any listed version, such as a language selector or a global home page.

Can I use machine translation for markup and pages?

Review it. Google's advice is to keep content high quality, so check translated text, including the values in your markup, before publishing.

Free audit

Find out what your ad spend is really returning

A free review of your Google Ads, Meta ads and tracking. No obligation.

Get my free audit →
WhatsApp