lucasgonze / selectToAutocomplete

Turns any select tag into an autocomplete field with weighted options, synonyms and loose matching
http://baymard.com/labs/country-selector
1 stars 0 forks source link

auto-generate country list JS from a dedicated project repo #2

Open lucasgonze opened 11 years ago

lucasgonze commented 11 years ago

Find a way to have the JSON list of country names be auto-populated from some well-maintained project.

https://github.com/umpirsky/country-list

https://github.com/hexorx/countries/blob/master/lib/data/countries.yaml

lucasgonze commented 11 years ago

If I use https://github.com/umpirsky/country-list then the country list for any $locale is

https://github.com/umpirsky/country-list/blob/master/country/icu/{$locale}/country.json

Need: 1) dependent git repo 2) rewrite locale code to reference the json file above 3) wrestle the data structures so that the new stuff works in the context of the country selector