Skip to content

Language and Base Direction (i18n)

Use W3C standard: https://w3c.github.io/vc-data-model/#language-and-base-direction

https://www.w3.org/TR/string-meta/

AttributeTypeDescriptionRequired
@valuestringText in one specific language
@languagestringLanguage-Tag as defined by [BCP47]
@directionstringMAY contain a @direction property whose value is a base direction string defined by the @direction property in [JSON-LD11] Example: rtl

Single translation:

"title": {
  "@value": "HTML و CSS: تصميم و إنشاء مواقع الويب",
  "@language": "ar",
  "@direction": "rtl"
}

Multiple translations:

"title": [
  {
    "@value": "HTML and CSS: Designing and Creating Websites",
    "@language": "en"
  },
  {
    "@value": "HTML و CSS: تصميم و إنشاء مواقع الويب",
    "@language": "ar",
    "@direction": "rtl"
  }
]