Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about @direction on JSON-LD literals #1448

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,16 @@ <h3>Names and Descriptions</h3>
<a href="#language-and-base-direction"></a> for further information.
</p>

<p class="note">
The `@direction` attributes in the examples below are not required
for the associated single-language strings, as their default directions are the
same as those set in the attribute. We include the `@direction` attributes here
for clarity of demonstration, and to make copy+paste+edit deliver functional
results. Implementers are encouraged to read the section on
<a data-cite="JSON-LD11#string-internationalization">JSON-LD String Internationalization</a>
in the JSON-LD 1.1 specification [[JSON-LD11]].
</p>

<pre class="example nohighlight"
title="Usage of the name and description property">
{
Expand Down Expand Up @@ -1717,7 +1727,7 @@ <h3>Names and Descriptions</h3>
"@value": "Une université publique axée sur l'enseignement d'exemples.",
"@language": "fr"
}, {
"@value": "جامعة عامة تركز على أمثلة التدريس.",
"@value": ".جامعة عامة تركز على أمثلة التدريس",
"@language": "ar",
"@direction": "rtl"
}]
Expand Down