Sha256: 9e0d8966b9c0e24da5b74d300a536fa5c650c00f11d66ca23e17478d00526327
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
# frozen_string_literal: true date_hash = { abbr_day_names: lambda { |_key, options| if options[:format] && options[:format] =~ Sunrise::LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH :'date.common_abbr_day_names' else :'date.standalone_abbr_day_names' end }, day_names: lambda { |_key, options| if options[:format] && options[:format] =~ Sunrise::LOCALIZE_STANDALONE_DAY_NAMES_MATCH :'date.standalone_day_names' else :'date.common_day_names' end }, abbr_month_names: lambda { |_key, options| if options[:format] && options[:format] =~ Sunrise::LOCALIZE_ABBR_MONTH_NAMES_MATCH :'date.common_abbr_month_names' else :'date.standalone_abbr_month_names' end }, month_names: lambda { |_key, options| if options[:format] && options[:format] =~ Sunrise::LOCALIZE_MONTH_NAMES_MATCH :'date.common_month_names' else :'date.standalone_month_names' end } } # Context-based month name and day name switching for Russian # # Названия месяцев и дней недели в зависимости от контекста ("1 декабря", но "Декабрь 1985") { uk: { date: date_hash }, ru: { date: date_hash } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | config/locales/defaults/datetime.rb |
sunrise-cms-1.1.0 | config/locales/defaults/datetime.rb |