Sha256: 166c680fc284655e5f062f379f3ec3caa365da91bf873e749ecc4af4cf5c8fe6

Contents?: true

Size: 762 Bytes

Versions: 7

Compression:

Stored size: 762 Bytes

Contents

class GettextSimpleRails::Translators::DateTranslator
  def detected?
    true
  end
  
  def translations
    return {
      "date" => {
        "formats" => {
          "default" => "%Y-%m-%d",
          "short" => "%b %d",
          "long" => "%B %d, %Y"
        },
        "day_names" => [0, 1, 2, 3, 4, 5, 6],
        "abbr_day_names" => [0, 1, 2, 3, 4, 5, 6],
        "month_names" => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
        "abbr_month_names" => [0 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
      },
      "time" => {
        "formats" => {
          "default" => "%a, %d %b %Y %H:%M:%S %z",
          "short" => "%d %b %H:%M",
          "long" => "%B %d, %Y %H:%M"
        },
        "am" => "am",
        "pm" => "pm"
      }
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gettext_simple_rails-0.0.12 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.11 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.10 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.9 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.8 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.7 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.6 lib/gettext_simple_rails/translators/date_translator.rb