Format numbers depending on selected locale

Yeah, I guess adding another library isn’t the best option. In an ideal world we could just use Intl.NumberFormat, but of course Safari and all those mobile browsers lack support for it. :angry:

But FormatJS looks promising. It’s using a polyfill for Intl, integrates well with Ember and I’m quite sure it would be possible to replace moment.js with it too. (Ok, moment.js is currently used for parsing and calculating dates, so replacing it is probably not an option.)

Anyway, we need some kind of solution for this. If it’s just a “simple” function in those lib/locale scripts, that’s fine with me too.