BeejLuig / currency-converter

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

Research ways that currencies are displayed #1

Open BeejLuig opened 6 years ago

BeejLuig commented 6 years ago

Put reference websites below:

BeejLuig commented 6 years ago

https://www.hotels.com/ actually allows you to select nearly EVERY currency available and see it in a list form. Pretty neat!

Potential parsing roadblocks:

Potential solutions:

The currency sections of the toLocaleString docs reference this official currency list. I used this list for the static currency-codes.json

BeejLuig commented 6 years ago

Looks like we can handle issue #2 from here as well

kerrykimrusso commented 6 years ago

Look into use case for toLocaleString (yay browser APIs 🙌)

The amount of localization in web APIs always astounds me even though it shouldn't.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString#Performance

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat

BeejLuig commented 6 years ago

Yes, we want to lean on as many web APIs as possible, only using 3rd party libraries if necessary

BeejLuig commented 6 years ago

Pretty thorough article on currency localization: https://sites.miis.edu/zzhou/2017/12/19/formatting-currency-by-using-javascript/