Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
DPrakashRaj
DPrakashRajAccepted solution
New Participant
Apr 28, 2023 9:14 PM UTC

it depends on the architecture that you will follow for AEM headless. Now a days sling model exporter are being preferred in headless architecture on which you can directly inject any component or service via annotation and in this case you can import it as

@586265
@10410875("(component.name=org.apache.sling.i18n.impl.JcrResourceBundleProvider)")
private ResourceBundleProvider i18nProvider;

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/i18n-access-from-model-adaptables-resource-class/m-p/254608

2 replies

DPrakashRaj
DPrakashRajAccepted solution
New Participant
Apr 28, 2023 9:14 PM UTC

it depends on the architecture that you will follow for AEM headless. Now a days sling model exporter are being preferred in headless architecture on which you can directly inject any component or service via annotation and in this case you can import it as

@586265
@10410875("(component.name=org.apache.sling.i18n.impl.JcrResourceBundleProvider)")
private ResourceBundleProvider i18nProvider;

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/i18n-access-from-model-adaptables-resource-class/m-p/254608

Translate
Saravanan_Dharmaraj
New Participant
Apr 14, 2023 12:16 AM UTC

@bkkothari2255 Please check out this article from@Albin_Issac , it provides servlet example on how to export in json.

 

https://www.albinsblog.com/2022/05/how-to-share-selected-i18n-dictionaries-in-json-format-aem.html#.ZDiaXOzMIV8

 

Translate