Skip to content
 
 

Repository files navigation

bing_translate_yaml is a simple Ruby on Rails plugin for translating your YAML files using Bing.

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)

Run:

$ rake translate from=en to=es client_id="<your microsoft client_id>" client_secret="<your microsoft client_secret>"

This will create (or update) the following file:

config/locales/es.yml

Enjoy :-)

  • Encapsulate all translation logic in separate class

Thanks to Ricky Elrod for his excellent and simple bing_translator gem!

Copyright © 2012 Lasse Bunk, released under the MIT license

About

Simple Ruby on Rails plugin for translating your YAML files using Bing.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages