Translating HTML Microdata and itemprop Attributes Without Breaking Rich Results

Translate HTML Microdata by keeping itemprop names fixed and localizing the values those properties expose. That applies to visible copy and human-readable metadata; the production caveat is that a Microdata parser may read an attribute such as content or value instead of the text a visitor sees.

Start by identifying the item, its properties, and the element that supplies each value. Then check the extracted data on the rendered locale page, not just the translated source. A French price can look right on screen while the associated offer still reports the wrong amount, currency, or destination URL.

Keep the vocabulary fixed and translate the copy

itemscope creates an item, itemtype identifies its vocabulary type, and itemprop assigns a property to that item. The property name name is part of the Schema.org vocabulary, not the English label for a translation key. Translating it to nom leaves the HTML parseable but no longer supplies the Schema.org name property.

Broken: the property names were translated

<article itemscope itemtype="https://schema.org/Product" lang="fr">
  <h2 itemprop="nom">Lampe de bureau Atlas</h2>
  <p itemprop="description_du_produit">Lampe à intensité réglable.</p>
</article>

The browser still displays the heading and paragraph, so a visual review can miss the regression. In the extracted item, look for missing recognized properties rather than an HTML parsing error.

Fixed: the property values were translated

<article itemscope itemtype="https://schema.org/Product" lang="fr">
  <h2 itemprop="name">Lampe de bureau Atlas</h2>
  <p itemprop="description">Lampe à intensité réglable.</p>
</article>

The parser now associates the French strings with the expected properties. This example establishes the translation boundary; it isn't a complete product rich-result implementation. On an entirely French page, set lang="fr" on the document’s <html> element instead of repeating it on every item.

Never send itemprop tokens or itemtype URLs to a translator. If an itemprop attribute contains multiple space-separated property names, preserve all of them.

Find the value the parser actually reads

Inspect the element that carries itemprop before deciding what to translate. A heading normally contributes its descendant text, but a link contributes its URL and an image contributes its source URL. When an element also has itemscope, the value is the nested item, not a string assembled from its descendants.

Where Microdata gets a property’s value

Property markupValue sourceLocalization decision
<h2 itemprop="name">Descendant textTranslate the product name according to the catalog’s naming rules.
<meta itemprop="description" content="…">contentTranslate the description and keep it consistent with the visible page.
<meta itemprop="priceCurrency" content="EUR">contentKeep EUR unless the actual offer uses a different currency.
<data itemprop="price" value="49.90">valueFormat the visible amount for the locale; keep the machine amount free of currency symbols and grouping separators.
<time itemprop="startDate" datetime="2026-12-15T19:00:00+01:00">datetime when present; otherwise textTranslate the visible date without changing the event’s actual time.
<a itemprop="url" href="/fr/lampe-atlas/">href, resolved as a URLTranslate the label separately; set the destination through locale routing.
<img itemprop="image" src="/media/atlas.jpg" alt="…">src, resolved as a URLTranslate meaningful alt text for accessibility. Change src only when serving a different asset.
<!-- Broken: a link supplies its URL, not its label. -->
<a itemprop="name" href="/fr/lampe-atlas/">Lampe de bureau Atlas</a>

<!-- Fixed: mark up the URL and the text on separate elements. -->
<a itemprop="url" href="/fr/lampe-atlas/">
  <span itemprop="name">Lampe de bureau Atlas</span>
</a>

Inside a product scope, the first version gives name a URL. The second exposes both the product URL and its French name without changing the visible link. Verify the absolute URL in the extracted data, since a relative href resolves against the document’s base URL.

Render each localized offer from one source of truth

Language and market are separate inputs. A translation might change the decimal separator and move the currency symbol without changing the offer. A new market might have a different price, currency, or stock status. Resolve those facts from the offer record first, then generate both the visible text and the Microdata from that record.

<article itemscope itemtype="https://schema.org/Product" lang="fr-FR">
  <h2 itemprop="name">Lampe de bureau Atlas</h2>
  <img itemprop="image" src="/media/atlas.jpg"
       alt="Lampe de bureau Atlas avec abat-jour orientable">
  <p itemprop="description">Lampe à intensité réglable.</p>
  <a itemprop="url" href="/fr/lampe-atlas/">Voir la lampe Atlas</a>

  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    <meta itemprop="priceCurrency" content="EUR">
    <link itemprop="availability" href="https://schema.org/InStock">
    <p>Prix : <data itemprop="price" value="49.90">49,90&nbsp;€</data></p>
    <p>En stock</p>
  </div>
</article>

The nested Offer exposes 49.90, EUR, and the standard InStock URL while shoppers see the French amount and stock label. Without the nested scope, fields can land on the wrong item instead of on offers. Verify the price and availability against the purchasable offer, and check the requirements of the specific search feature you’re targeting; valid Microdata alone doesn’t guarantee eligibility.

Never publish a machine-readable price or availability that contradicts the offer shoppers see. Generate both representations from the same market-specific data.

Preserve property ownership when the layout changes

Localized templates often move pricing, specifications, or purchase controls to a different component. Moving a node outside its item can disconnect it from that item; adding an itemscope can change which item owns its descendants. Prefer nesting properties under the right item where the layout allows it. When a property must live elsewhere in the document, itemref can point to the element by ID.

<article itemscope itemtype="https://schema.org/Product"
         itemref="atlas-fr-specs" lang="fr">
  <h2 itemprop="name">Lampe de bureau Atlas</h2>
</article>

<section id="atlas-fr-specs" lang="fr">
  <h2>Caractéristiques</h2>
  <p>Couleur : <span itemprop="color">Noir mat</span></p>
</section>

Here the product still acquires color even though the specifications sit outside the article. If the template renames the ID without updating itemref, the specifications stay visible while the extracted property disappears. Verify that the ID is unique and that the value is attached to the intended product, especially on pages that render several product cards.

Validate the rendered page for each locale and market

Compare the extracted item graph, not a literal diff of the translated HTML. Property names and types should remain stable; human-readable values should change where expected; currency, price, and availability should match the selected market. For a CMS-driven page, capture those expectations in a test fixture so a catalog or template update can’t quietly restore the source-language values.

{
  "path": "/fr/lampe-atlas/",
  "expectedProduct": {
    "name": "Lampe de bureau Atlas",
    "description": "Lampe à intensité réglable.",
    "offers": {
      "type": "https://schema.org/Offer",
      "price": "49.90",
      "priceCurrency": "EUR",
      "availability": "https://schema.org/InStock"
    }
  }
}

This is a QA fixture, not markup to embed in the page. It records both the expected values and the fact that the commercial fields belong to a nested offer. Compare it with the parser’s output; if your test tool normalizes prices to numbers, compare the numeric amount rather than requiring the original trailing zero.

  1. Use Schema Markup Validator to inspect the extracted Product and Offer items. Check that each field is on the intended item and that localized strings are present.
  2. Use Google’s Rich Results Test to check the supported feature on the rendered locale URL. Review errors and warnings separately, and open the extracted item rather than relying on the top-level status.
  3. Check the published locale as a shopper would. Compare the price and stock label with offers, confirm that product links lead to the intended locale, and check for conflicting Product data injected by a plugin or theme.

Use HTML Translate to preview localized copy in its markup before validating the extracted properties on the published page.

Common Microdata Translation Mistakes

  • The translated page has no recognized product name. Restore itemprop="name" and translate only the text or attribute that supplies the value.
  • The product name is an absolute URL. Move itemprop="name" from the <a> to a text-bearing child and use itemprop="url" on the link.
  • The displayed price is correct, but the extracted price is invalid. Keep the localized currency formatting in the visible text and emit a value such as value="49.90" for the parser.
  • The summary is still in the source language. The workflow updated visible text but skipped content on <meta itemprop="description">. Localize the attribute too, or mark up the visible description directly.
  • The offer fields are missing from the offer. Check where itemscope starts and ends. Set itemprop="offers" on the nested Offer and keep its fields inside that scope or attach them deliberately with itemref.
  • Two prices appear for one product. A theme may still emit stale JSON-LD alongside the updated Microdata. Identify both Product items in the rendered output and remove the redundant source or generate both from the same offer record.

HTML File Translation Questions

Does the page language change how property names are interpreted?

No. lang="fr" identifies the language of the content; it doesn't change the meaning or spelling of itemprop="description". Use a language tag appropriate to the page and keep the vocabulary tokens unchanged.

Should a product SKU change on a translated page?

Only if the page represents a catalog record with a different SKU. Treat sku as an identifier supplied by the catalog, not as translatable text. The same principle applies to a real GTIN: never derive a new one by formatting or translating the old one.

Can the visible price use a comma while Microdata uses a period?

Yes. For example, place 49,90 € in the visible text of a <data> element and use value="49.90" for the machine-readable price. Set priceCurrency independently to the actual three-letter currency code.

Should translation update the product URL?

Update href if the URL property should identify the localized product page. Use the route generated by the site rather than asking a translator to edit the path by hand. Check that it resolves to the intended page and agrees with that page’s canonical strategy.

Does switching to JSON-LD remove these localization problems?

It removes element-specific value extraction rules, but the data still has to match the localized page. A JSON-LD description can stay in the wrong language, and offers.price can drift from the visible amount if the template generates them separately.

Why might valid markup still not produce a rich result?

Vocabulary validity, search-feature eligibility, and actual display are separate. Check the feature’s required properties, the published page’s crawlability and indexing status, and whether the structured data represents visible content. Passing a test doesn’t guarantee that a search engine will display a rich result.

Translate a file →