Skip to content

Instantly share code, notes, and snippets.

@TMaYaD
Created February 27, 2012 08:48
Show Gist options
  • Save TMaYaD/1922613 to your computer and use it in GitHub Desktop.
Save TMaYaD/1922613 to your computer and use it in GitHub Desktop.
I18n.extend Module.new {
def translate(*args)
print args.to_yaml
super
end
}
@TMaYaD
Copy link
Author

TMaYaD commented Feb 27, 2012

I18n.translate('hello') should print "en.hello"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment