Update locale.rb

Rails compatibility