Module: Lazier::I18n
- Included in:
- Settings
- Defined in:
- lib/lazier/i18n.rb
Overview
Provides an easy way to localized messages in a class.
Instance Method Summary collapse
-
#i18n ⇒ R18N::Translation
Get the list of available translation for the current locale.
-
#i18n=(locale) ⇒ R18n::Translation
Set the current locale for messages.
-
#i18n_setup(root, path) ⇒ Object
Setup all I18n translations.
Instance Method Details
#i18n ⇒ R18N::Translation
Get the list of available translation for the current locale.
22 23 24 |
# File 'lib/lazier/i18n.rb', line 22 def i18n @i18n ||= i18n_load_locale(nil) end |
#i18n=(locale) ⇒ R18n::Translation
Set the current locale for messages.
30 31 32 |
# File 'lib/lazier/i18n.rb', line 30 def i18n=(locale) @i18n = i18n_load_locale(locale) end |