Fixing number translations for i18n
Fixing number translations for i18n

Actualy there's a problem with number_to_currency which throws the following
error:

  can't convert String into Hash

This is because in es-MX.yml currency is formatted as:

  currency:
    format: "%u%n"
    delimiter: ","
    unit: "$"
    precision: 2
    separator: "."

Where it should be:

  currency:
    format:
      format: "%u%n"
      delimiter: ","
      unit: "$"
      precision: 2
      separator: "."

Also removed some configuration concurrency leaving the same precision and
delimiter as defualt for all cases:

es-MX:
  number:
    currency:
      format:
        format: "%u%n"
        unit: "$"
    format:
      delimiter: ","
      precision: 2
      separator: "."
    human:
      storage_units:
        format: "%n %u"
        units:
          byte:
            one:   "Byte"
            other: "Bytes"
          kb: "KB"
          mb: "MB"
          gb: "GB"
          tb: "TB"

Also there was a bug with the storage units that with this configuration is
fixed.

Some simple tests:

  = number_to_currency(1_000_345.55)
  => $1,000,345.55
  = number_to_percentage(99.50)
  => 99.50%
  = number_with_delimiter(1_000_345.55)
  => 1,000,345.55
  = number_with_precision(1_000_345.55)
  => 1,000,345.55
  = number_to_human_size(1_234_567)
  => 1.18 MB

mauriciopasquier/rails-i18n,pyonnuka/rails-i18n,brainqi1991/rails-i18n,alexballera/rails-i18n,panzershreck/rails-i18n,digitalfrost/rails-i18n,Davidzhu001/rails-i18n,saurabhbhatia/rails-i18n,humancopy/rails-i18n,jesson/rails-i18n,arferreira/rails-i18n,pippallabs/rails-i18n,xfalcox/rails-i18n,mperrando/rails-i18n,fotos/rails-i18n,hiro-hvk/rails-i18n,kwojc/rails-i18n,amatsuda/rails-i18n,taka-p/rails-i18n,HanyMoh/rails-i18n,svenfuchs/rails-i18n,sopheak-se/rails-i18n,CloudVLab/rails-i18n,khacluan/rails-i18n,kapilchoudhary/rails-i18n,gyatsu/rails-i18n,tenderlove/rails-i18n,yasinn/rails-i18n,ukazap/rails-i18n,kawasakiatsushi/rails-i18n,tonymarklove/rails-i18n,kewaunited/rails-i18n,anoiaque/rails-i18n,alphagov/rails-i18n,atzorvas/rails-i18n