Ember addon for converting number digits to words.
ember install ember-number-to-words
Depending on language the component call is different.
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 |
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
English: @futoricky
Spanish: @futoricky
French: @cicoub13
Lithuanian: @rimvislt
All contributions are welcomed and encouraged.
Please make all pull requests to the dev
branch.
Thanks!