Java Reference
In-Depth Information
// File ListLocales.java
Locale[] list = Locale.getAvailableLocales( );
for (Locale loc : list) {
System.out.println(loc);
}
The list is far too long to show here, as you can judge by the first few entries:
> java i18n.ListLocales
en
en_US
ar
ar_AE
ar_BH
ar_DZ
ar_EG
ar_IQ
ar_JO
ar_KW
ar_LB
ar_LY
ar_MA
ar_OM
ar_QA
ar_SA
ar_SD
ar_SY
ar_TN
ar_YE
be
be_BY
On my laptop, the complete list has more than a dozen dozen locales:
$ java i18n.ListLocales | wc -l
160
$
Search WWH ::




Custom Search