Sha256: ebd7903c19c31afe17029df49b7679b551e26bf9ecc327ed56d5f4db38aab26c

Contents?: true

Size: 792 Bytes

Versions: 6

Compression:

Stored size: 792 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],
        "order" => [0, 1, 2]
      },
      "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

6 entries across 6 versions & 1 rubygems

Version Path
gettext_simple_rails-0.0.19 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.17 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.16 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.15 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.14 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.13 lib/gettext_simple_rails/translators/date_translator.rb