Skip to content

Instantly share code, notes, and snippets.

@masnick
Created September 7, 2010 17:12
Show Gist options
  • Save masnick/568688 to your computer and use it in GitHub Desktop.
Save masnick/568688 to your computer and use it in GitHub Desktop.
Translate into multiple languages
require "rubygems"
require "rsay"
[Language::ARABIC, Language::CHINESE, Language::CHINESE_SIMPLIFIED, Language::CHINESE_TRADITIONAL, Language::DUTCH, Language::FRENCH, Language::GERMAN, Language::GREEK, Language::ITALIAN, Language::JAPANESE, Language::KOREAN, Language::PORTUGUESE, Language::RUSSIAN, Language::SPANISH, Language::SWEDISH].each do |out|
puts Translate.t('words', Language::ENGLISH, out)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment