Sha256: 11b914918ec5b4fc1c7d75cb94247b174a9bd88d27d04cb13a8ae7b8ef786bf2
Contents?: true
Size: 450 Bytes
Versions: 7
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true module Authlogic module I18n # The default translator used by authlogic/i18n.rb class Translator # If the I18n gem is present, calls +I18n.translate+ passing all # arguments, else returns +options[:default]+. def translate(key, options = {}) if defined?(::I18n) ::I18n.translate key, options else options[:default] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems