Sha256: 1c56d72a07ed5f60b43b8fc99267e717ce37bfa8e2b4e1f8114a1e54299f5c33

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

module Padrino
  module Helpers
    module TranslationHelpers
      ##
      # Delegates to I18n.translate with no additional functionality.
      # 
      def translate(*args)
        I18n.translate(*args)
      end
      alias :t :translate

      ##
      # Delegates to I18n.localize with no additional functionality.
      # 
      def localize(*args)
        I18n.localize(*args)
      end
      alias :l :localize
    end # TranslationHelpers
  end # Helpers
end # Padrino

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
padrino-helpers-0.9.6 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.5 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.4 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.3 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.2 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.1 lib/padrino-helpers/translation_helpers.rb
padrino-helpers-0.9.0 lib/padrino-helpers/translation_helpers.rb