2018-09-06 15:04:43 +02:00
|
|
|
|
{
|
|
|
|
|
:fr => {
|
|
|
|
|
:time => {
|
|
|
|
|
:formats => {
|
2023-07-03 16:50:07 +02:00
|
|
|
|
veryshort: lambda { |time, _|
|
|
|
|
|
if time.year == Date.current.year
|
|
|
|
|
"%d/%m %H:%M"
|
|
|
|
|
else
|
|
|
|
|
"%d/%m/%Y %H:%M"
|
|
|
|
|
end
|
|
|
|
|
},
|
2018-09-06 15:04:43 +02:00
|
|
|
|
:message_date => lambda { |time, _| "le #{time.day == 1 ? '1er' : time.day} %B à %H h %M" },
|
2022-10-28 15:45:04 +02:00
|
|
|
|
:message_date_with_year => lambda { |time, _| "le #{time.day == 1 ? '1er' : time.day} %B %Y à %H h %M" },
|
|
|
|
|
:message_date_without_time => lambda { |_time, _| "%d/%m/%Y" }
|
2018-09-06 15:04:43 +02:00
|
|
|
|
}
|
2023-06-28 16:34:50 +02:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
datetime: {
|
|
|
|
|
distance_in_words: {
|
|
|
|
|
x_weeks: {
|
|
|
|
|
one: "1 semaine",
|
|
|
|
|
other: "%{count} semaines"
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-09-06 15:04:43 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|