TranslatesToFrench
Basic French/English i18n helper for Rails application models
Installation
Add this line to your application's Gemfile:
gem 'translates_to_french'
And then execute:
$ bundle
Or install it yourself as:
$ gem install translates_to_french
Usage
app/models/article.rb:
class Article < ActiveRecord::Base
translates_to_french :title
end
db table articles:
- title (varchar)
- title_fr (varchar)
Contributing
- Fork it ( https://github.com/gordonbisnor/translates_to_french/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