Skip to content

Commit

Permalink
set notification email date time formats for fr
Browse files Browse the repository at this point in the history
CPCN-408
  • Loading branch information
petrjasek committed Oct 31, 2023
1 parent 240f430 commit f782aef
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,26 @@
"DATE_FORMAT": "MMM Do, YYYY",
"COVERAGE_DATE_FORMAT": "MMM Do, YYYY",
"COVERAGE_DATE_TIME_FORMAT": "HH:mm MMM Do, YYYY",
"DATE_FORMAT_HEADER": "long", # babel

# server formats
"DATE_FORMAT_HEADER": "long",
}
)
CLIENT_LOCALE_FORMATS["fr_CA"].update(
{
"TIME_FORMAT": "HH:mm",
"DATE_FORMAT": "Do MMMM YYYY",
"COVERAGE_DATE_FORMAT": "LL",
"DATETIME_FORMAT": "HH:mm [le] Do MMMM YYYY",
"COVERAGE_DATE_FORMAT": "LL",
"COVERAGE_DATE_TIME_FORMAT": "HH:mm [le] Do MMMM YYYY",
"DATE_FORMAT_HEADER": "d MMMM yyyy à H:mm zzz", # babel
"AGENDA_DATE_FORMAT_SHORT": "dddd, D MMMM",
"AGENDA_DATE_FORMAT_LONG": "dddd, D MMMM YYYY",

# server formats
"DATE_FORMAT_HEADER": "d MMMM yyyy à H:mm zzz",
"NOTIFICATION_EMAIL_TIME_FORMAT": "HH:mm",
"NOTIFICATION_EMAIL_DATE_FORMAT": "d MMMM yyyy",
"NOTIFICATION_EMAIL_DATETIME_FORMAT": "d MMMM yyyy à H:mm",
}
)

Expand Down

0 comments on commit f782aef

Please sign in to comment.