Module: Padrino::Helpers::TranslationHelpers
- Defined in:
- lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/translation_helpers.rb
Overview
Helpers related to locale1 i18n translation within templates.
Instance Method Summary collapse
-
#localize(*args) ⇒ String
(also: #l)
Delegates to I18n.localize with no additional functionality.
-
#translate(*args) ⇒ String
(also: #t)
Delegates to I18n.translate with no additional functionality.
Instance Method Details
#localize(*args) ⇒ String Also known as: l
Delegates to I18n.localize with no additional functionality.
32 33 34 |
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/translation_helpers.rb', line 32 def localize(*args) I18n.localize(*args) end |
#translate(*args) ⇒ String Also known as: t
Delegates to I18n.translate with no additional functionality.
17 18 19 |
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/translation_helpers.rb', line 17 def translate(*args) I18n.translate(*args) end |