Inject Resolver Dependency and get locale in your phtml And in your phtml:
Create Instance to Object Manager then inject dependency to perform your query: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); Now load your country by the following code: $country = $objectManager->create(‘\Magento\Directory\Model\Country’)->load(‘AE’)->getName(); While AE is the country code. The output of above code will be: United Arab Emirates
To get country list data, you need to create instance of Country collection model `Magento\Directory\Model\ResourceModel\Country\CollectionFactory`. Once instance is created, you can load it by current store.