lib/authlogic/i18n.rb in authlogic-4.5.0 vs lib/authlogic/i18n.rb in authlogic-5.0.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "authlogic/i18n/translator" module Authlogic # This class allows any message in Authlogic to use internationalization. In # earlier versions of Authlogic each message was translated via configuration. @@ -90,9 +92,9 @@ # the key for the message. The second is options, see the rails I18n # library for a list of options used. def translate(key, options = {}) translator.translate key, { scope: I18n.scope }.merge(options) end - alias :t :translate + alias t translate end end end