Hi All,
I want to get all available language codes in AEM.
Is there anyway we can get country and language codes in 2 digits? Currently I'm using all the codes by creating enum.Is this correct way of using language codes in AEM OSGI services
Thanks,
Aruna
Solved! Go to Solution.
Thanks for the inputs @Anny0505
Every enum constant is an instance of an enum class. Given the list of languages to consider, you can use the one from OOTB location that I shared accordingly.
Hi @Anny0505,
List of languages are available at this location - /libs/wcm/core/resources/languages
(Used as part of Translation/Translation projects)
Could you please elaborate your requirement/need for the availability of all language codes in OSGi service.
Thanks @Vijayalakshmi_S for the quick turn.
My requirement is to import asset through custom utility into DAM. While importing i have to set languages dc:language to asset metadataschema.
For this purpose I need to get all possible languagesin my OSGI service.
Thanks for the inputs @Anny0505
Every enum constant is an instance of an enum class. Given the list of languages to consider, you can use the one from OOTB location that I shared accordingly.
Hi @Anny0505
Hope this helps.
Thanks,
Kiran Vedantam.
Thanks @Kiran_Vedantam , Actually I 'm not using page here. I'm trying to import asset where I ned to add dc:language through OSGI service
Views
Likes
Replies
Views
Likes
Replies