Created
June 12, 2017 16:37
-
-
Save edouard/66ffef00e4ea4ba2218320aa04611619 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before using: gem install web_translate_it | |
require "web_translate_it" | |
api_key = "your_api_key" | |
WebTranslateIt::Connection.new(api_key) do | |
WebTranslateIt::String.find_all({ key: "key_name" }).each do |string| | |
puts "key: #{string.key}" | |
puts "FR value: #{string.translation_for("fr")}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment