0.6.0 • Published 8 years ago
ember-number-to-words v0.6.0
Ember-number-to-words
Ember addon for converting number digits to words.
Installation
ember install ember-number-to-words
Usage
Depending on language the component call is different.
Supported Languages
| Language | Component | Example |
|---|---|---|
| English | number-to-english | {{number-to-english number=11}} will return eleven |
| French | number-to-french | {{number-to-french number=11}} will return onze |
| Lithuanian | number-to-lithuanian | {{number-to-lithuanian number=11}} will return vienuolika |
| Spanish | number-to-spanish | {{number-to-spanish number=11}} will return once |
Properties
| Property | Attribute | Description | Required |
|---|---|---|---|
| number | integer | Integer to convert to word | Yes |
| decimal | 'word' | Returns decimal in word format | No |
| 'fraction' | Return decimal in fraction format | No | |
| capitalize | boolean | If true, returns capitalized first letter | No |
By default it just ignores the decimal and counts it as part of the integer
Language Contributions :metal:
English: @futoricky
Spanish: @futoricky
French: @cicoub13
Lithuanian: @rimvislt
Contributions
All contributions are welcomed and encouraged.
Please make all pull requests to the dev branch.
Thanks!