Class: I18n::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/gettext_i18n_rails/i18n_hacks.rb

Instance Method Summary collapse

Instance Method Details

#localeObject



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

def locale
  FastGettext.locale.gsub("_","-").to_sym
end

#locale=(new_locale) ⇒ Object



9
10
11
# File 'lib/gettext_i18n_rails/i18n_hacks.rb', line 9

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