Translates To French gem
Six years ago I wrote a Rails plugin for a few websites I was working on that required basic French/English I18n from the database. Six years later, I’m gemifying the plugin.
Installation:
Gemfile:
gem 'translates_to_french'
Usage
app/models/article.rb:
class Article
translates_to_french :title
end
app/views/articles/show.html.haml
= article.title
Database: title, title_fr
Github: https://github.com/gordonbisnor/translates-to-french
I am available for Ruby on Rails consulting work – get in touch to learn more.