Module Wicked::Wizard::Translated
In: lib/wicked/wizard/translated.rb

Methods

Included Modules

Wicked::Wizard

Public Instance methods

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

takes an already translated value and converts to a canonical wizard value

es.yml wicked:

  first: "uno"

  wizard_value("uno") # => :first

[Validate]