We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bed2131 commit 2f83f82Copy full SHA for 2f83f82
1 file changed
src/Tags/Events.php
@@ -77,9 +77,9 @@ public function daysOfWeek(): Collection
77
78
$days = collect(CarbonPeriod::dates(now()->startOfWeek(), now()->endOfWeek()))
79
->map(fn (Carbon $date) => [
80
- 'short' => $date->format('D')[0],
81
- 'medium' => $date->format('D'),
82
- 'long' => $date->format('l'),
+ 'short' => $date->translatedFormat('D')[0],
+ 'medium' => $date->translatedFormat('D'),
+ 'long' => $date->translatedFormat('l'),
83
]);
84
85
Carbon::setLocale($currentLocale);
0 commit comments