Module | Wicked::Wizard::Translated |
In: |
lib/wicked/wizard/translated.rb
|
takes a canonical wizard value and translates to correct language
es.yml wicked:
first: "uno" wizard_translate("first") # => :uno
creates a hash where keys are translated steps, values are the name of the view file
es: hello: "hola mundo" wicked: first: "uno" second: "dos" steps :first, :second
{:uno => :first, :dos => :second} # spanish {:first => :first, :second => :second} # english