Skip to content

Commit 25d2011

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 d528735 commit 25d2011

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
@@ -5080,7 +5080,10 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
50805080
example but consolidates all values in a single property. To access the
50815081
value in a specific language in a programming language supporting dot-notation
50825082
accessors for object properties, a developer may use the
5083-
<code>property.language</code> pattern. For example, to access the occupation
5083+
<code>property.language</code> pattern
5084+
(when languages are limited to the primary language sub-tag,
5085+
and do not depend on other sub-tags, such as `"en-us"`).
5086+
For example, to access the occupation
50845087
in English, a developer would use the following code snippet:
50855088
<code>obj.occupation.en</code>.</p>
50865089

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

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

0 commit comments

Comments
 (0)