BeejLuig / currency-converter

Chrome extension for converting currencies on the fly
MIT License
0 stars 0 forks source link

ISO Codes #33

Open BeejLuig opened 6 years ago

BeejLuig commented 6 years ago

Need to map country ISO Codes to currency: https://www.nationsonline.org/oneworld/country_code_list.htm And map language codes to country: https://www.loc.gov/standards/iso639-2/php/code_list.php

kerrykimrusso commented 6 years ago

map language codes to country

I think we can just default the language used for Intl.NumberFormat to the user's default. https://codepen.io/kerrykimrusso/pen/aaYjrN?editors=0012

Need to map country ISO Codes to currency

Is this to set the default currency for the user? My vote would be to let the user set the to currency themselves. I think the only lookup we'll need is from the symbol of the currency being used in the page to the desired currency.

Seem right?