Sha256: 72a1b1b47b14240188abfc3f0e31062e2e73896b6b5d934845b4fed1dce976b1

Contents?: true

Size: 821 Bytes

Versions: 43

Compression:

Stored size: 821 Bytes

Contents

module Padrino
  module Helpers
    ##
    # Helpers related to locale i18n translation within templates.
    #
    module TranslationHelpers
      ##
      # Delegates to I18n.translate with no additional functionality.
      #
      # @param [Symbol] *args
      #   The keys to retrieve.
      #
      # @return [String]
      #  The translation for the specified keys.
      #
      def translate(*args)
        I18n.translate(*args)
      end
      alias :t :translate

      ##
      # Delegates to I18n.localize with no additional functionality.
      #
      # @param [Symbol] *args
      #   The keys to retrieve.
      #
      # @return [String]
      #  The translation for the specified keys.
      #
      def localize(*args)
        I18n.localize(*args)
      end
      alias :l :localize
    end
  end
end

Version data entries

43 entries across 43 versions & 4 rubygems

Version Path
padrino-helpers-0.15.1 lib/padrino-helpers/translation_helpers.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.15.0 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.4 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.3 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.12.9 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.2 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.13.3.4 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.1.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.0.2 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.0.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.0 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.0.rc2 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.14.0.rc1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.13.3.3 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.13.3.2 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.12.8.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.13.3.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.13.3 lib/padrino-helpers/translation_helpers.rb