Skip to content

Commit 4eb26e9

Browse files
committed
Note that indexing of language tags depends on their not using sub-tags other than the primary language-tag.
Fixes #251.
1 parent fa3e312 commit 4eb26e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5081,7 +5081,10 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
50815081
example but consolidates all values in a single property. To access the
50825082
value in a specific language in a programming language supporting dot-notation
50835083
accessors for object properties, a developer may use the
5084-
<code>property.language</code> pattern. For example, to access the occupation
5084+
<code>property.language</code> pattern
5085+
(when languages are limited to the primary language sub-tag,
5086+
and do not depend on other sub-tags, such as `"en-us"`).
5087+
For example, to access the occupation
50855088
in English, a developer would use the following code snippet:
50865089
<code>obj.occupation.en</code>.</p>
50875090

@@ -7427,7 +7430,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
74277430
<strong>de</strong> keys are implicitly associated with their respective
74287431
values by the <a>JSON-LD Processor</a>. This allows a developer to
74297432
access the German version of the <strong>label</strong> using the
7430-
following code snippet: <code>obj.label.de</code>.</p>
7433+
following code snippet: <code>obj.label.de</code>,
7434+
which, again, is only appropriate when languages are limited to the
7435+
primary language sub-tag and do not depend on other sub-tags, such as `"en-us"`.</p>
74317436

74327437
<p>The value of <code>@container</code> can also
74337438
be an array containing both <code>@language</code> and <code>@set</code>.

0 commit comments

Comments
 (0)