fix error in errors.rb and add es locale