Skip to content

Instantly share code, notes, and snippets.

@cjwilliams
Last active December 18, 2015 17:09
Show Gist options
  • Save cjwilliams/2a084416f12c809e0702 to your computer and use it in GitHub Desktop.
Save cjwilliams/2a084416f12c809e0702 to your computer and use it in GitHub Desktop.
hello:
en: "Hello world"
es: "Hola mundo"
fr: "Bonjour tout le monde"
zh: "你好世界"
esperanto: "Saluton mondo"
de: "Hallo welt"
it: "Ciao mondo"
latin: "Salve mundi"
pt: "Olá mundo"
ru: "привет мир"
tamil: "ஹலோ உலகம்"
welsch: "Helo byd"
require 'yaml'
greetings = YAML.load_file('greetings.yml')
greetings['hello'].each_value {|value| puts value}
$ ruby hello.rb
Hello world
Hola mundo
Bonjour tout le monde
你好世界
Saluton mondo
Hallo welt
Ciao mondo
Salve mundi
Olá mundo
привет мир
ஹலோ உலகம்
Helo byd
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment