https://ns.adobe.com/xdm/assets/language-alternative
A tuple in a set of language alternatives, i.e. pairs of localized text and their locale, that are equivalent in meaning.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Cannot be instantiated | Yes | Stabilizing | No | Forbidden | Permitted | assets/language-alternative.schema.json |
{
"xdm:text": "Cogito, ergo sum",
"xml:lang": "la"
}
Property | Type | Group |
---|---|---|
xdm:text | string |
https://ns.adobe.com/xdm/assets/language-alternative#/definitions/language-alternative |
xml:lang | string |
https://ns.adobe.com/xdm/assets/language-alternative#/definitions/language-alternative |
xdm:text
- is optional
- type:
string
- defined in this schema
string
The locale of the language alternative. Locales are expressed following RFC BCP47
xml:lang
- is optional
- type:
string
- defined in this schema
string
All instances must conform to this regular expression (test examples here):
^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$