I\'m triying to convert, using PHP, 2 characters country code (ISO 3166-1) to country names, or intl country codes, so I can translate the country name.
Using Loca
You can get a JSON mapping of ISO2 country code to name at http://country.io/names.json. Here's a simple PHP example that makes use of it:
$names = json_decode(file_get_contents("http://country.io/names.json"), true);
echo $names['US'];
// => United States
echo $names['NL'];
// => Netherlands
See http://country.io/data/ for more related data.