Tool

JSON-LD Schema Localization Diff

Compare original and translated structured data, catch renamed keys and broken types, and keep rich results eligible after a page moves to another language.

Auto-detects full HTML (<script type="application/ld+json">) or raw JSON-LD

100% client-side: Your HTML and JSON-LD never leave your browser.

0 B
0 B
Paste original and translated HTML or JSON-LD, or load the broken schema sample.
Reference

Why translated JSON-LD breaks rich results

Rich results for articles, FAQs, products, breadcrumbs, and how to steps depend on JSON-LD in a script whose type is application/ld+json. The page can look finished while that block is no longer valid.

Four failures show up often. Curly quotes replace straight ASCII quotes, so the block is not legal JSON. acceptedAnswer may become antwort. Question may become Frage. Reader facing sentences and the language tag can stay in English.

JSON-LD translation reference

Reader facing strings should change with the page language. A few identifiers should be localized on purpose. Structural names and codes must stay as published. The diff flags a renamed key, a changed protected value, a long identical text field, and a stale inLanguage value.

FieldActionRule
headline, description, name, text, caption, alternativeHeadlineTranslateVisible strings longer than 15 characters that still match the source are warnings. Shorter names are ignored.
inLanguageLocalizeUse the BCP 47 tag of the translated page, such as de or ja. A tag that still equals the source is a warning.
url, @idLocalize on purposePoint values at the translated address when the path changes. Do not translate the key names.
@context, @typeNever translateKeep an English type such as Article, FAQPage, Question, Answer, Product, BreadcrumbList, or HowTo.
priceCurrency, availabilityNever translateKeep a three letter uppercase ISO 4217 code and a Schema.org availability value such as InStock.
datePublished, dateModified, sku, gtinNever translateDates, SKUs, and GTIN codes stay identical. Any key that begins with gtin is protected.
Property keysNever translateacceptedAnswer and mainEntity must keep the English spelling. A rename such as antwort is critical.

How a finding is read

Each row names the block, the severity, the finding type, and a path such as $.mainEntity[0].@type. Critical rows are invalid JSON, a different block count, a renamed key, or a protected value that changed. Warnings do not fail the comparison.

Paste full HTML or raw JSON-LD. Script blocks are read in order, including a charset parameter. Ordinary scripts, comments, and style or title text are ignored. Nothing is uploaded, and input above 2 MB is refused.

FAQ

Does translating @type disqualify rich results?

Yes. Parsers expect an English Schema.org type. Question must stay Question. Frage is an unknown type, so the rich result can disappear.

How should inLanguage be localized?

Set inLanguage to the BCP 47 tag of the translated page, such as de or fr-CA. A value that still matches the source is a warning.

How should localized url and @id fields be handled?

Update url and @id when the translated page uses a different path. Values may change. Key names must not.

Why do smart quotes break JSON-LD parsing?

JSON allows only straight quotation marks. Curly quotes and a trailing comma make parsing fail, so a crawler drops the block.

Does this check upload HTML or JSON-LD?

No. The comparison runs in the browser. Files stay on the computer, nothing is uploaded, and input over 2 MB is refused.

When a localized URL changes, confirm the cluster with the hreflang and canonical validator. Titles and descriptions are covered in the HTML translation best practices guide. Lock product names with the brand and code protector before a translation pass. Further utilities are listed in the tools hub. Static HTML pages can be translated from the HTML Translate home page.