Skip to content

sethers/bing_translate_yaml

 
 

Repository files navigation

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

Installation

In your Gemfile:

gem 'bing_translate_yaml'

Then run bundle install.

Example

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

Todo’s

  • Encapsulate all translation logic in separate class

Thanks

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%