Skip to content

What is the best practice for localization site? #218

Description

@deli-ght

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.

  1. write values in page's own language using inLanguage property
// korean page
{
  ...
  name: 한국어 페이지
  inLanguage : "ko"
  ...
}
// english page
{
  ...
  name: English page
  inLanguage : "en"
  ...
}
  1. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions