lib/redmine_cli/helpers/output.rb
#
# Gets text from I18n and replaces params
# e.g.
#   I18n.t(:hello) => 'Hello, {{ user }}'
#   message(:hello, user: 'Vasya') => 'Hello, Vasya'
#
# @param name [Symbol]
# @param params [Hash] optional
#
Gets text from I18n and replaces params
e.g.
Gets text from I18n and replaces params e . g .
def message(name, params = {})
        result = I18n.t name
        params.each { |k, e| result.gsub!("{{ #{k} }}", e.to_s) }
        result
      end
def message ( name , params = { } ) result = I18n . t name params . each { | k , e | result . gsub! ( "{{ #{k} }}" , e . to_s ) } result end
Gets text from I18n and replaces params
e.g.
Gets text from I18n and replaces params e . g .
name
params
None
None