Project

plata

0.0
Low commit activity in last 3 years
No release in over a year
Describe a number in words for English, Spanish and Portugues.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.1.4
~> 13.0.1
 Project Readme

Plata

Rails gem to describe a number in words for English and Spanish. For use english and spanish simply define:

I18n.locale = :en (English) I18n.locale = :es (Espanish)

Ideal to be used to print in receipts.

Install

Add the following line in to your Gemfile:

     gem 'plata'

Or from github:

     gem 'plata', :git => 'git://github.com/gedera/plata.git'

And from the command line run:

    $ bundle

Usage

Examples for return numbers in english and spanish:

     > 9736.humanize
     "nine thousand seven hundred thirty six" (English)
     "nueve mil setecientos treinta y seis" (Spanish)
     > 9736.45.humanize
     "nine thousand seven hundred thirty six with 45/100" (English)
     "nueve mil setecientos treinta y seis con 45/100" (Spanish)

Enjoy!!!

Version

0.1.0

License

MIT

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/plata.