Sha256: bfcef4bb24e199cbb8b52361245e02dda1e3e435e598420d9b0a90820b845046

Contents?: true

Size: 1.32 KB

Versions: 14

Compression:

Stored size: 1.32 KB

Contents

class GettextSimpleRails::Translators::NumberTranslator
  def detected?
    true
  end
  
  def translations
    return {
      "number" => {
        "currency" => {
          "format" => {
            "delimiter" => ",",
            "format" => "%n %u",
            "separator" => ".",
            "unit" => "$"
          }
        },
        "format" => {
          "delimiter" => ",",
          "separator" => ".",
          
        },
        "human" => {
          "decimal_units" => {
            "format" => "%n %u",
            "units" => {
              "billion" => "Billion",
              "million" => "Million",
              "quadrillion" => "Quadrillion",
              "thousand" => "Thousand",
              "trillion" => "Trillion",
              "unit" => ""
            }
          },
          "format" => {
            "delimiter" => ""
          },
          "storage_units" => {
            "format" => "%n %u",
            "units" => {
              "byte" => {
                "one" => "Byte",
                "other" => "Bytes"
              },
              "gb" => "GB",
              "kb" => "KB",
              "mb" => "MB",
              "tb" => "TB"
            }
          }
        },
        "percentage" => {
          "format" => {
            "delimiter" => ""
          }
        }
      }
    }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext_simple_rails-0.0.19 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.17 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.16 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.15 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.14 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.13 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.12 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.11 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.10 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.9 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.8 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.7 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.6 lib/gettext_simple_rails/translators/number_translator.rb
gettext_simple_rails-0.0.5 lib/gettext_simple_rails/translators/number_translator.rb