class I18n::Config

def locale=(locale)

Sets the current locale pseudo-globally, i.e. in the Thread.current hash.
def locale=(locale)
  I18n.enforce_available_locales!(locale)
  @locale = locale && locale.to_sym
end