0.0
No commit activity in last 3 years
No release in over 3 years
number_words handler for english
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

NumberWordsEn

Provides :en locale for number_words gem. See https://github.com/conanite/number_words

Installation

gem 'number_words_en'
bundle

Usage

require 'number_words/core_ext'

I18n.locale = :en
123.to_words  # => "one hundred and twenty three"

If you don't want to monkey-patch Integer, you can do this instead:

I18n.locale = :en
NumberWords.int_to_words 123  # => "one hundred and twenty three"

Contributing

  1. Fork it ( http://github.com/conanite/number_words_en/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request