Open BeejLuig opened 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
Looks like we can handle issue #2 from here as well
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/NumberFormat
Yes, we want to lean on as many web APIs as possible, only using 3rd party libraries if necessary
Pretty thorough article on currency localization: https://sites.miis.edu/zzhou/2017/12/19/formatting-currency-by-using-javascript/
Put reference websites below: