I have a webform hook that processes some conditionals depending on a country name dropdown on the webform.
The conditionals need to compare to the English name because there are many various conditions. But the country name from the webform may be translated to a different (non-English) language.
I have the non-English country name in my code and I'd like to translate it to English for my conditionals. Is this possible?
From my webform handler hook:
$country = $data['country']['country'];
How can I translate the country name above to English in my code?