Created
February 13, 2012 19:49
-
-
Save cfcosta/1819613 to your computer and use it in GitHub Desktop.
Listagem de países com reus respectivos locales, roubado direto do java.utils.Locale.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
countries: | |
- ["ar_AE", "United Arab Emirates"] | |
- ["ar_BH", "Bahrain"] | |
- ["ar_DZ", "Algeria"] | |
- ["ar_EG", "Egypt"] | |
- ["ar_IQ", "Iraq"] | |
- ["ar_JO", "Jordan"] | |
- ["ar_KW", "Kuwait"] | |
- ["ar_LB", "Lebanon"] | |
- ["ar_LY", "Libya"] | |
- ["ar_MA", "Morocco"] | |
- ["ar_OM", "Oman"] | |
- ["ar_QA", "Qatar"] | |
- ["ar_SA", "Saudi Arabia"] | |
- ["ar_SD", "Sudan"] | |
- ["ar_SY", "Syria"] | |
- ["ar_TN", "Tunisia"] | |
- ["ar_YE", "Yemen"] | |
- ["be_BY", "Belarus"] | |
- ["bg_BG", "Bulgaria"] | |
- ["ca_ES", "Spain"] | |
- ["cs_CZ", "Czech Republic"] | |
- ["da_DK", "Denmark"] | |
- ["de_AT", "Austria"] | |
- ["de_CH", "Switzerland"] | |
- ["de_DE", "Germany"] | |
- ["de_LU", "Luxembourg"] | |
- ["el_CY", "Cyprus"] | |
- ["el_GR", "Greece"] | |
- ["en_AU", "Australia"] | |
- ["en_CA", "Canada"] | |
- ["en_GB", "United Kingdom"] | |
- ["en_IE", "Ireland"] | |
- ["en_IN", "India"] | |
- ["en_MT", "Malta"] | |
- ["en_NZ", "New Zealand"] | |
- ["en_PH", "Philippines"] | |
- ["en_SG", "Singapore"] | |
- ["en_US", "United States"] | |
- ["en_ZA", "South Africa"] | |
- ["es_AR", "Argentina"] | |
- ["es_BO", "Bolivia"] | |
- ["es_CL", "Chile"] | |
- ["es_CO", "Colombia"] | |
- ["es_CR", "Costa Rica"] | |
- ["es_DO", "Dominican Republic"] | |
- ["es_EC", "Ecuador"] | |
- ["es_ES", "Spain"] | |
- ["es_GT", "Guatemala"] | |
- ["es_HN", "Honduras"] | |
- ["es_MX", "Mexico"] | |
- ["es_NI", "Nicaragua"] | |
- ["es_PA", "Panama"] | |
- ["es_PE", "Peru"] | |
- ["es_PR", "Puerto Rico"] | |
- ["es_PY", "Paraguay"] | |
- ["es_SV", "El Salvador"] | |
- ["es_US", "United States"] | |
- ["es_UY", "Uruguay"] | |
- ["es_VE", "Venezuela"] | |
- ["et_EE", "Estonia"] | |
- ["fi_FI", "Finland"] | |
- ["fr_BE", "Belgium"] | |
- ["fr_CA", "Canada"] | |
- ["fr_CH", "Switzerland"] | |
- ["fr_FR", "France"] | |
- ["fr_LU", "Luxembourg"] | |
- ["ga_IE", "Ireland"] | |
- ["hi_IN", "India"] | |
- ["hr_HR", "Croatia"] | |
- ["hu_HU", "Hungary"] | |
- ["in_ID", "Indonesia"] | |
- ["is_IS", "Iceland"] | |
- ["it_CH", "Switzerland"] | |
- ["it_IT", "Italy"] | |
- ["iw_IL", "Israel"] | |
- ["ja_JP", "Japan"] | |
- ["ja_JP_JP", "Japan"] | |
- ["ko_KR", "South Korea"] | |
- ["lt_LT", "Lithuania"] | |
- ["lv_LV", "Latvia"] | |
- ["mk_MK", "Macedonia"] | |
- ["ms_MY", "Malaysia"] | |
- ["mt_MT", "Malta"] | |
- ["nl_BE", "Belgium"] | |
- ["nl_NL", "Netherlands"] | |
- ["no_NO", "Norway"] | |
- ["no_NO_NY", "Norway"] | |
- ["pl_PL", "Poland"] | |
- ["pt_BR", "Brazil"] | |
- ["pt_PT", "Portugal"] | |
- ["ro_RO", "Romania"] | |
- ["ru_RU", "Russia"] | |
- ["sk_SK", "Slovakia"] | |
- ["sl_SI", "Slovenia"] | |
- ["sq_AL", "Albania"] | |
- ["sr_BA", "Bosnia and Herzegovina"] | |
- ["sr_CS", "Serbia and Montenegro"] | |
- ["sr_ME", "Montenegro"] | |
- ["sr_RS", "Serbia"] | |
- ["sv_SE", "Sweden"] | |
- ["th_TH", "Thailand"] | |
- ["th_TH_TH", "Thailand"] | |
- ["tr_TR", "Turkey"] | |
- ["uk_UA", "Ukraine"] | |
- ["vi_VN", "Vietnam"] | |
- ["zh_CN", "China"] | |
- ["zh_HK", "Hong Kong"] | |
- ["zh_SG", "Singapore"] | |
- ["zh_TW", "Taiwan"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Locale; | |
class LocaleStealer { | |
public static void main(String[] args) { | |
Locale[] availableLocales = Locale.getAvailableLocales(); | |
System.out.println("countries:") | |
for (Locale locale : availableLocales) { | |
if(! locale.getDisplayCountry().equals("")) { | |
System.out.println(String.format(" - [\"%s\", \"%s\"]", locale, locale.getDisplayCountry())); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment