Sha256: 28655a27c2830782073cf1fe7f596e6bf18ca409624a3eeeed09803460916a4b

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 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],
        "abbr_month_names" => [0 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
      },
      "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

3 entries across 3 versions & 1 rubygems

Version Path
gettext_simple_rails-0.0.5 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.4 lib/gettext_simple_rails/translators/date_translator.rb
gettext_simple_rails-0.0.3 lib/gettext_simple_rails/translators/date_translator.rb