lib/shopify_cli/context.rb
# returns the user-facing messages for the given key. Returns the key if no message is available.
#
# #### Parameters
# * `key` - a symbol representing the message
# * `params` - the parameters to format the string with
returns the user-facing messages for the given key. Returns the key if no message is available.
Parameters
`key` - a symbol representing the message
`params` - the parameters to format the string with
returns the user - facing messages for the given key . Returns the key if no message is available . Parameters ` key ` - a symbol representing the message ` params ` - the parameters to format the string with
def message(key, *params)
        key_parts = key.split(".").map(&:to_sym)
        str = Context.messages.dig(*key_parts)
        str ? str % params : key
      end
def message ( key , * params ) key_parts = key . split ( "." ) . map ( & :to_sym ) str = Context . messages . dig ( * key_parts ) str ? str % params : key end
returns the user-facing messages for the given key.
returns the user - facing messages for the given key .
key
params