Actions
Feature proposal #9639
openImprove country conversions
Description
Currently functions like countryToTwoLetters only convert from country name to two letters. It's not taking into account that country could be three letters or two letters already. Same for countryToThreeLetters. Other functions like twoToThreeLettersCountry can then be replace by countryToThreeLetters as it'd handle all 3 cases.
Additionally twoLettersToCountry conversion from 2-letters to name should be replaced to a countryToName function that also handles all 3 cases. This removes the risks of country not converting right when it's passed values we already know about.
Actions