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

JSON-LD 1.1 Feature Request: Object-level @language #368

Closed
jasnell opened this issue Oct 3, 2014 · 3 comments
Closed

JSON-LD 1.1 Feature Request: Object-level @language #368

jasnell opened this issue Oct 3, 2014 · 3 comments
Labels
api defer Issue deferred to future Working Group spec-design syntax

Comments

@jasnell
Copy link
Contributor

jasnell commented Oct 3, 2014

See: digitalbazaar/jsonld.js#72

It would be helpful to have the ability to use @language within an object as a shorthand for "@context": {"@language": "..."} ... for instance... make:

{
  "@language": "en",
  "displayName": "foo"
}

equivalent to:

{
  "@context": {"@language": "en"}, 
  "displayName": "foo"
}
@lanthaler
Copy link
Member

Having looked at the discussion in the referenced issue, I'm not sure this is the right way to address it. Using a property to represent the "object's language" instead of the @language keyword that is used to language-tag strings seems to be a more sensible solutions to me.

@lanthaler lanthaler added this to the JSON-LD.next milestone Oct 6, 2014
@davidlehn davidlehn added the 1.1 label Oct 7, 2014
@gkellogg gkellogg modified the milestone: JSON-LD.next Dec 12, 2015
@kevinSuttle
Copy link

Would something like http://formatjs.io/ help out here?

@lanthaler lanthaler modified the milestone: JSON-LD.next Jan 10, 2016
@gkellogg gkellogg removed this from the JSON-LD.next milestone Sep 22, 2016
@gkellogg gkellogg removed the 1.1 label Sep 22, 2016
@gkellogg gkellogg added defer Issue deferred to future Working Group and removed on-hold labels Apr 4, 2018
@gkellogg
Copy link
Member

Closed in favor of w3c/json-ld-syntax#5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api defer Issue deferred to future Working Group spec-design syntax
Projects
None yet
Development

No branches or pull requests

5 participants