Skip to content

Details

Talks

Translating With Mobility, by Chris Salzberg

Talk level: intermediate

Translating stored content in a Ruby project can be a tricky task. How do you read, update and query your translations? Do you need to change your presentation logic to accommodate translations? And in what format will you actually store the translations?

Mobility is a gem I've built to help make working with translations easier. Unlike other translation gems, Mobility is "pluggable", in the sense that it supports many different storage strategies through a common interface. It also supports multiple ORM (ActiveRecord and Sequel currently). This makes it, I believe, the most flexible translation solution for your Ruby project.

I'll explain Mobility and a bit of background about how it internally manages multiple storage backends using some interesting Ruby metaprogramming.

About Chris Salzberg

Degica

dejimata.com (http://dejimata.com/)

Ruby/Rails programmer originally from Montreal, living and working in Tokyo.
About Chris Salzberg

Brought to you by our sponsor: Glossier

http://res.cloudinary.com/hsp2lrg9b/image/upload/c_fit,h_100,w_100/v1497908279/zirdu9iwd6en0efnlnxf.png

Related topics

You may also like