Skip to content

Instantly share code, notes, and snippets.

@norman
Created April 14, 2010 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norman/366393 to your computer and use it in GitHub Desktop.
Save norman/366393 to your computer and use it in GitHub Desktop.
I18n.backend.store_translations(:foo, :test => {:a => "b"})
I18n.backend.store_translations(:foo2, :test => lambda {|*args| args.join(", ")})
p I18n.t 'test', :locale => :foo # {:a=>"b"}
p I18n.t 'test', :locale => :foo2 # "test, "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment