Once you get the cookie, map all the countries codes which you want to convert or maintain a Generic list in the AEM with all the mappings and get the values from the list
Please find the reference for using generic lists
https://adobe-consulting-services.github.io/acs-aem-commons/features/generic-l...