Since this question is about Ruby, not Ruby on Rails, my need also, here is something outside of Rails:
Installing rubygem 'locale' (documented here ):
$ gem install locale
Using it:
require 'rubygems' require 'locale' Locale.current = 'whateverlocaleyouwant'
There is no such functionality in the Ruby core.
eis
source share