Skip to content
Snippets Groups Projects
Commit 2692e029 authored by pabois's avatar pabois
Browse files

add date_range_i18n

parent e23d59d4
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ gem "hal_openscience", "~> 0.1"
gem "has_scope", "~> 0.8.0"
gem "hash_dot"
gem "i18n_data", "~> 0.17.1"
gem "i18n_date_range", "~> 0.1.0"
gem "image_processing"
gem "jbuilder"
gem "jquery-rails"
......@@ -93,4 +94,4 @@ group :test do
gem "simplecov", require: false
end
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
\ No newline at end of file
......@@ -275,6 +275,7 @@ GEM
concurrent-ruby (~> 1.0)
i18n_data (0.17.1)
simple_po_parser (~> 1.1)
i18n_date_range (0.1.0)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
......@@ -614,6 +615,7 @@ DEPENDENCIES
has_scope (~> 0.8.0)
hash_dot
i18n_data (~> 0.17.1)
i18n_date_range (~> 0.1.0)
image_processing
jbuilder
jquery-rails
......
......@@ -4,8 +4,8 @@ dates:
status: "<%= @about.status %>"
archive: <%= @about.archive? %>
computed:
short: "Du 14 au 16 juin 2023"
long: "Du mercredi 14 au vendredi 16 juin 2023"
short: <%= date_range_i18n(@about.from_day, @about.to_day) %>
long: <%= date_range_i18n(@about.from_day, @about.to_day, :long) %>
from:
day: <%= @about.from_day %>
<% if @about.from_hour %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment