How to find country
from Locale-language
?
eg; if I set the local language
to en
, then I expect to get US
as a country.
Locale locale = new Locale("en"); locale.getCountry() // returns null
The problem is that I have a country code, such as: fr,de,en
, and now I just want to find the correct country code from these codes.
tokhi source share