lib/lita/adapter.rb in lita-4.7.1 vs lib/lita/adapter.rb in lita-4.8.0.beta1

- old
+ new

@@ -45,10 +45,10 @@ # Returns the translation for a key, automatically namespaced to the adapter. # @param key [String] The key of the translation. # @param hash [Hash] An optional hash of values to be interpolated in the string. # @return [String] The translated string. def translate(key, hash = {}) - I18n.translate("lita.adapters.#{namespace}.#{key}", hash) + I18n.translate("lita.adapters.#{namespace}.#{key}", **hash) end alias_method :t, :translate end