- Tratocyr - Translit To Cyrillic
- This gem provide functionality for translation string with translit symbols to string with cyrillic symbols
Installation
Add this line to your application's Gemfile:
gem 'tratocyr', '~> 0.0.2'
-
Note: Please use version 0.0.2 with fix of loading path.
- Version 0.0.1 don't work due to wrong loading path used in gem.
And then execute:
$ bundle
Or install it yourself as:
$ gem install tratocyr
Usage
- Usage:
translator = Tratocyr::CyrillicTranslator.new
translator.to_cyrillic("Mister Putin molodec!")
- Result:
Мистер Путин молодец!
Contributing
- Fork it ( https://github.com/CyberLight/tratocyr/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Developing
- For running tests use
rake spec
command - For generating yard documentation use
rake yard
command