No commit activity in last 3 years
No release in over 3 years
bing_translate_yaml is a simple Ruby on Rails plugin to translate your YAML files using Bing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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 app_id="<Your Microsoft API Application ID>"

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