Ruby on Rails, programming, and SEO
Check out my articles about Ruby on Rails, programming, and SEO. Weekly updates? Subscribe to my feed.

Translate your Ruby on Rails YAML files using Bing

This plugin allows you to simply translate your Ruby on Rails YAML files into any language using Bing.

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 :-)

Related posts

Tags: , , , , ,

2 comments

  1. Richard Yaker says:

    where do you set the api id?

  2. Richard Yaker says:

    Now I am getting

    “\xC3″ from ASCII-8BIT to UTF-8

Leave a comment

 
Fork me on GitHub