Method: I18n::Config#locale=
- Defined in:
- lib/i18n/config.rb
#locale=(locale) ⇒ Object
Sets the current locale pseudo-globally, i.e. in the Thread.current hash.
14 15 16 17 |
# File 'lib/i18n/config.rb', line 14 def locale=(locale) I18n.enforce_available_locales!(locale) @locale = locale && locale.to_sym end |