Module: I18n

Defined in:
lib/gettext_i18n_rails/i18n_hacks.rb

Class Method Summary collapse

Class Method Details

.localeObject



7
8
9
# File 'lib/gettext_i18n_rails/i18n_hacks.rb', line 7

def locale
  FastGettext.locale.to_sym
end

.locale=(new_locale) ⇒ Object

this is not chainable, since FastGettext may reject this locale!



4
5
6
# File 'lib/gettext_i18n_rails/i18n_hacks.rb', line 4

def locale=(new_locale)
  FastGettext.locale = new_locale
end