Re: Sling JSON i18n

2017-04-27 Thread Bertrand Delacretaz
Hi, On Thu, Apr 27, 2017 at 1:01 PM, Correia wrote: > ...I'm importing the files to the JCR repository via maven and i'm using JSON > instead of XML... Ah ok got it, your problem is how to provide those json files as initial content in your source code,

Re: Sling JSON i18n

2017-04-27 Thread Correia
: http://apache-sling.73963.n3.nabble.com/Sling-JSON-i18n-tp4072998p4073012.html Sent from the Sling - Users mailing list archive at Nabble.com.

Re: Sling JSON i18n

2017-04-27 Thread Bertrand Delacretaz
On Thu, Apr 27, 2017 at 12:14 PM, Correia wrote: > ...What I wanted to do is having a pure JSON file like: > { > "hello": "Hello", > "hello2": "Hello 2" > } > > Is this possible... Yes, as described in the docs. The corresponding test is

Re: Sling JSON i18n

2017-04-27 Thread Correia
n to get the label ${'hello' @i18n}. How can I use i18n in javascript? -- View this message in context: http://apache-sling.73963.n3.nabble.com/Sling-JSON-i18n-tp4072998p4073009.html Sent from the Sling - Users mailing list archive at Nabble.com.

Re: Sling JSON i18n

2017-04-27 Thread Chris Millar
t;"jcr:primaryType": "nt:resource", >"jcr:data": { >"hello": "Hello", >"hello2": "Hello 2" >} >} > } > > Issues: > 1) type "nt:file" dont allow me to define jcr:language ( No matching > property definition: jcr:language = en) > 2) Missing some defenition in jcr:data (No matching property definition: > jcr:data) > > PS: I'm using pure Sling. No AEM nor CQ. > > Thanks, > Carlos Correia > > > > -- > View this message in context: > http://apache-sling.73963.n3.nabble.com/Sling-JSON-i18n-tp4072998.html > Sent from the Sling - Users mailing list archive at Nabble.com.

Sling JSON i18n

2017-04-26 Thread Correia
"jcr:data": { "hello": "Hello", "hello2": "Hello 2" } } } Issues: 1) type "nt:file" dont allow me to define jcr:language ( No matching property definition: jcr:language =