Get Country of currentPage
In my Java model class I have the currentPage from which I'm trying to get the country. But it always gives empty/null value. I tried the following:
currentPage.getLanguage() --> gives me the locale
locale.getLanguage-->gives me the language of the locale
currentPage.getLanguage().getCountry()-->empty
currentPage.getLanguage().getDisplayCountry()-->empty
I'm getting the correct language codes for both cases but not the country. What should be the correct approach?
