Skip to content

Commit 2f83f82

Browse files
authored
Translate week days (#150)
1 parent bed2131 commit 2f83f82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Tags/Events.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public function daysOfWeek(): Collection
7777

7878
$days = collect(CarbonPeriod::dates(now()->startOfWeek(), now()->endOfWeek()))
7979
->map(fn (Carbon $date) => [
80-
'short' => $date->format('D')[0],
81-
'medium' => $date->format('D'),
82-
'long' => $date->format('l'),
80+
'short' => $date->translatedFormat('D')[0],
81+
'medium' => $date->translatedFormat('D'),
82+
'long' => $date->translatedFormat('l'),
8383
]);
8484

8585
Carbon::setLocale($currentLocale);

0 commit comments

Comments
 (0)