How to get all availables Locale's language codes?
When you want to internationalize your application, you need to know the language code and country code. These codes will be used as the properties file name (the file name must be ended in
language_COUNTRY.properties). Here is an example that show how to get all supported language's code.
Here a some of the results produces by the code above:
Locale name: Japanese (Japan) = ja_JP
Locale name: Spanish (Peru) = es_PE
Locale name: English (United States) = en_US
Locale name: French (Belgium) = fr_BE
Locale name: Indonesian (Indonesia) = in_ID
Locale name: German (Germany) = de_DE
Locale name: English (Singapore) = en_SG