Google's Structured Data Testing Tool doesn't seem to like JSON-LD's @language in value object
approach to string internationalization. For example:
{
"@context": "https://schema.org/",
"@type": "Person",
"name": [{"@language": "ar", "@value": "أياس"},
{"@language": "en", "@value": "Eyas"}]
}
or
{
"@context": "https://schema.org/",
"@type": "Person",
"name": {"@language": "ar", "@value": "أياس"}
}
don't seem to work. I also tried adding "@type": "Text"
but that doesn't seem to make it happy either.
Is there an accepted way of specifying multiple language representations of the same thing in Schema.org JSON-LD that is respected by search engines?
I know there's "inLanguage"
for certain types, but that is not general enough to, e.g., work with a Person
.