I18n In headless | Community
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.
Best answer by DPrakashRaj

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
April 28, 2023

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

Saravanan_Dharmaraj
New Participant
April 14, 2023

@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