I'm working on a multiple-language website and I'm preparing Schema.org markups using JSON-LD. Important detail: this website uses subdirectories for languages. Let's consider 2 languages:
- English:
https://www.example.com/
- French:
https://www.example.com/fr/
I want to put Corporation
and WebSite
things on all localized HP. Everything goes fine but for @id
, url
and inLanguage
properties: I don't quite know what I should fill.
For Corporation
, I think I got it right: I'm going to use on all pages default url and base my @id
on it:
{
"@context": "http://schema.org",
"@type": "Corporation",
"@id": "https://www.example.com/#organization",
"name": "Example",
"url": "https://www.example.com/",
...
But what would be the best move for WebSite
properties, on my French HP?
Technically speaking, /fr/
subfolder is part of the example.com/
domain. But then, @id
, inLanguage
and url
are not telling my website is also available for French-speakers.
{
"@context": "http://schema.org",
"@type": "WebSite",
"@id": "https://www.example.com/#website", // should this be "https://www.example.com/fr/#website" ?
"name": "Example",
"url": "https://www.example.com/", // should this be "https://www.example.com/fr/" ?
"inLanguage": "en", // should this be "fr" ?
...
I searched a lot about this and found nothing on this particular matter. Does anyone have any experience on this?