Isnor Creative
Isnor Creative Blog
Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue

Feb 21, 2015

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.

Gordon B. Isnor

Gordon B. Isnor writes about Ruby on Rails, Ember.js, Elm, Elixir, Phoenix, React, Vue and the web.
If you enjoyed this article, you may be interested in the occasional newsletter.

I am now available for project work. I have availability to build greenfield sites and applications, to maintain and update/upgrade existing applications, team augmentation. I offer website/web application assessment packages that can help with SEO/security/performance/accessibility and best practices. Let’s talk

comments powered by Disqus