可能重复:
本地化国家名称
是否有任何包含所有以欧洲主要语言本地化的国家/地区的 java 库?
我试过使用java.util.Locale
,但它不包含所有国家(它缺少一些像圣马力诺、安道尔、阿塞拜疆......)
编辑
这:
for (Locale locale : Locale.getAvailableLocales())
{
System.out.println(locale.getCountry() + " " + locale.getDisplayCountry());
}
输出这个:(我的语言环境是英语)
AE United Arab Emirates
AL Albania
AR Argentina
AT Austria
AU Australia
BA Bosnia and Herzegovina
BE Belgium
BG Bulgaria
BH Bahrain
BO Bolivia
BR Brazil
BY Belarus
CA Canada
CH Switzerland
CL Chile
CN China
CO Colombia
CR Costa Rica
CS Serbia and Montenegro
CY Cyprus
CZ Czech Republic
DE Germany
DK Denmark
DO Dominican Republic
DZ Algeria
EC Ecuador
EE Estonia
EG Egypt
ES Spain
FI Finland
FR France
GB United Kingdom
GR Greece
GT Guatemala
HK Hong Kong
HN Honduras
HR Croatia
HU Hungary
ID Indonesia
IE Ireland
IL Israel
IN India
IQ Iraq
IS Iceland
IT Italy
JO Jordan
JP Japan
KR South Korea
KW Kuwait
LB Lebanon
LT Lithuania
LU Luxembourg
LV Latvia
LY Libya
MA Morocco
ME Montenegro
MK Macedonia
MT Malta
MX Mexico
MY Malaysia
NI Nicaragua
NL Netherlands
NO Norway
NZ New Zealand
OM Oman
PA Panama
PE Peru
PH Philippines
PL Poland
PR Puerto Rico
PT Portugal
PY Paraguay
QA Qatar
RO Romania
RS Serbia
RU Russia
SA Saudi Arabia
SD Sudan
SE Sweden
SG Singapore
SI Slovenia
SK Slovakia
SV El Salvador
SY Syria
TH Thailand
TN Tunisia
TR Turkey
TW Taiwan
UA Ukraine
US United States
UY Uruguay
VE Venezuela
VN Vietnam
YE Yemen
ZA South Africa
在您点击“关闭”之前,请阅读以下问题:
这个问题不是候选人重复问题的欺骗!另一个问题与java没有任何关系!它甚至还有objective-c 代码!