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,
:
http://apache-sling.73963.n3.nabble.com/Sling-JSON-i18n-tp4072998p4073012.html
Sent from the Sling - Users mailing list archive at Nabble.com.
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
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.
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.
"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 =