translate date to french : add locals

This commit is contained in:
isUnknown 2026-01-13 10:57:17 +01:00
parent a2d918ed82
commit 1eb88cf679
3 changed files with 5 additions and 2 deletions

View file

@ -2,6 +2,8 @@
return [
'debug' => true,
'locale' => 'fr_FR.UTF-8',
'date.handler' => 'intl',
'thumbs' => [
'quality' => 80,
'presets' => [

View file

@ -38,7 +38,7 @@
<?php if ($investigation->incidentDate()->isNotEmpty()): ?>
<div class="dl__group">
<dt>Date de l'incident</dt>
<dd><time datetime="<?= $investigation->incidentDate()->toDate('Y-m-d') ?>"><?= $investigation->incidentDate()->toDate('d F Y') ?></time></dd>
<dd><time datetime="<?= $investigation->incidentDate()->toDate('yyyy-MM-dd') ?>"><?= $investigation->incidentDate()->toDate('d MMMM yyyy', 'fr_FR') ?></time></dd>
</div>
<?php endif ?>