Quantcast
Channel: Lasse Bunk's weblog » Plugins
Viewing all articles
Browse latest Browse all 10

Translate your Ruby on Rails YAML files using Bing

$
0
0

I have created a plugin named bing_translate_yaml that allows you to simply translate your Ruby on Rails YAML files into any language using Bing. The plugin takes your YAML files from the config/locales folder and converts them to any language of your choice.

In your Gemfile:

gem 'bing_translate_yaml'

Then run:

$ bundle install

Make sure you have your translation files in e.g.:

config/locales/en.yml (English)
config/locales/de.yml (German)
config/locales/es.yml (Spanish)

Then run:

$ rake translate from=en to=es

This will create (or update) the following file:

config/locales/es.yml

Simple as cake! Enjoy :-)

Follow me on Twitter


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images