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