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
Solved! Go to Solution.
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.
Hope this helps.