I'm serving international service and there are localized pages that serve different lauguage for same contents. Each language pages include its language with its url path, such as '/en/contents' , '/ko/contents'.
I just wonder which one is the best way to inject a jsonld object for each pages.
- write values in page's own language using
inLanguage property
// korean page
{
...
name: 한국어 페이지
inLanguage : "ko"
...
}
// english page
{
...
name: English page
inLanguage : "en"
...
}
- write values in all languages that I serve with
@language keyword
// korean page
{
...
name : {
"ko" : "한국어 페이지",
"en" : "english page"
...
}
If there is other better example, welcome for the feedback. Thank you!
I'm serving international service and there are localized pages that serve different lauguage for same contents. Each language pages include its language with its url path, such as '/en/contents' , '/ko/contents'.
I just wonder which one is the best way to inject a jsonld object for each pages.
inLanguageproperty@languagekeywordIf there is other better example, welcome for the feedback. Thank you!