# Format numbers depending on selected locale

**URL:** <https://meta.discourse.org/t/format-numbers-depending-on-selected-locale/30418>\
**Category:** Feature\
**Tags:** translation, polls\
**Created:** [June 24, 2015, 7:22pm UTC](https://meta.discourse.org/t/format-numbers-depending-on-selected-locale/30418 "2015-06-24T19:22:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [June 25, 2015, 8:15am UTC](https://meta.discourse.org/t/format-numbers-depending-on-selected-locale/30418/3 "2015-06-25T08:15:45Z")

</div>

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. 😠

But [FormatJS](http://formatjs.io/) looks promising. It’s using a [polyfill for Intl](https://github.com/andyearnshaw/Intl.js), 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.

---

_[View the full topic](https://meta.discourse.org/t/format-numbers-depending-on-selected-locale/30418)._
