Module: Locomotive::Steam::Liquid::Filters::Translate
- Defined in:
- lib/locomotive/steam/liquid/filters/translate.rb
Instance Method Summary collapse
Instance Method Details
#translate(input, options = nil, legacy_scope = nil) ⇒ Object Also known as: t
8 9 10 11 12 13 14 15 16 |
# File 'lib/locomotive/steam/liquid/filters/translate.rb', line 8 def translate(input, = nil, legacy_scope = nil) ||= {} unless .respond_to?(:values) # String = { 'locale' => , 'scope' => legacy_scope } end @context.registers[:services].translator.translate(input, ) || input end |