Translates numbers to Polish words.
Add this line to your application's Gemfile:
gem 'polish_number'
Note: in the past known as polish-number (dash instead of an underscore) -- before version 1.0.0. Old repo: https://github.com/wpiekutowski/polish-number
And then execute:
$ bundle
Or install it yourself as:
$ gem install polish_number
require 'polish_number'
PolishNumber.translate(1234) #=> tysiąc dwieście trzydzieści cztery
PolishNumber.translate(34, :currency => :PLN) #=> trzydzieści cztery złote
PolishNumber.translate(12, :currency => :PLN) #=> dwanaście złotych
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request