How does sling handle the i18n?

I have a use case:
- I created a website
- Able to access its json using
http://localhost:8080/content/demo/index.infinity.json
- Now I want to manage the localized content for this site
- I am sending Accept-Language header while calling the json url

Here is the json output

{
"jcr:primaryType": "nt:unstructured",
"jcr:title": "Demo Page",
"jcr:lastModifiedBy": "admin",
"sling:template": "/conf/global/site/templates/base-page",
"sling:taxonomy": "/etc/taxonomy/reference/community",
"jcr:lastModified": "Fri Sep 04 2020 17:22:17 GMT+0530",
"sling:resourceType": "reference/components/pages/base",
"published": true,
"hideInSitemap": false,
"container": {
"jcr:primaryType": "nt:unstructured",
"richtext": {
"jcr:primaryType": "nt:unstructured",
"_wysihtml_mode": "1",
"text": "This is a test message",
"sling:resourceType": "sling-cms/components/general/richtext"
}
}
}

Now I want to get the localized content for "This is a test message" .



Kind Regards,
--
Deepak Dixit


On Fri, Sep 4, 2020 at 4:52 PM Robert Munteanu <romb...@apache.org> wrote:

> On Fri, 2020-09-04 at 16:48 +0530, Deepak Dixit wrote:
> > Thanks Robert for quick response,
> >
> > Yes I read it, and did some experiments but no luck
> >
> > I followed the instruction [1] and setup the sling cms app,
> > Created new site, added i18n and/or languages but no luck
>
> I see. Maybe it's about the way the Sling CMS handles i18n, and that I
> do not know. Maybe someone else does.
>
> Robert
>
> >
> >
> > [1] https://github.com/apache/sling-org-apache-sling-app-cms
> > Kind Regards,
> > --
> > Deepak Dixit
> >
> > On Fri, Sep 4, 2020 at 4:27 PM Robert Munteanu <romb...@apache.org>
> > wrote:
> >
> > > Hi Deepak,
> > >
> > > On Fri, 2020-09-04 at 15:38 +0530, Deepak Dixit wrote:
> > > > Hi Team,
> > > >
> > > > How to create localized content using sling?
> > > >
> > > > I am exploring sling cms app [1], I want to generate the
> > > > localized
> > > > site
> > > > using sling.
> > > >
> > > > Is it possible to generate the localized site using sling?
> > >
> > > Have you seen the i18n support from Sling?
> > >
> > >
> > >
> https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html
> > >
> > > Thanks,
> > > Robert
> > >
> > >
>
>

Reply via email to