I18n
Numbers
- Currency is expected to be formatted not based on the currency chosen, but based on the user's locale
- Formatting in JS:
Intl.NumberFormathttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat - Parsing in JS: not built-in.
globalizemight be the best option, but it has limited locales: https://github.com/globalizejs/globalize#numberparser-options-
Slapdash