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/
Attribute | Type | Description | Required |
---|---|---|---|
@value | string | Text in one specific language | ✅ |
@language | string | Language-Tag as defined by [BCP47] | ✅ |
@direction | string | MAY 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"
}
]