Skip to content

Releases: cybertoothca/ember-helper-locale-number

1.0.0

04 Dec 16:59
Compare
Choose a tag to compare

Three helpers optimized to format numbers according to the website visitor's locale.

  • {{currency-format 1.99}} -> "$1.99"
  • {{decimal-format 1234}} -> "1,234"
  • {{decimal-format 123.456789}} -> "123.457"
  • {{percent-format 0.123}} -> "12%"

DOCS: http://docs.ember-helper-locale-number.cybertooth.io

DEMO: http://docs.ember-helper-locale-number.cybertooth.io/#hbs

1.0.0 Release Candidate #1

04 Dec 06:19
Compare
Choose a tag to compare
Pre-release

Supporting three helpers that leverage Intl.NumberFormat.

  • {{currency-format 1.99}} -> "$1.99"
  • {{decimal-format 1234}} -> "1,234"
  • {{decimal-format 123.456789}} -> "123.457"
  • {{percent-format 0.123}} -> "12%"

Check out the /docs: http://docs.ember-helper-locale-number.cybertooth.io