Name dynamic translation keys the way the catalogue test reads them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ class ExpiringSoon extends Notification
|
||||
return FilamentNotification::make()
|
||||
->title(trans_choice('panel.expiring.notification.title', $this->items->count(), ['count' => $this->items->count()]))
|
||||
->body($this->items
|
||||
->map(fn (array $item) => $item['title'].' — '.__('panel.expiring.events.'.$item['event'], [
|
||||
->map(fn (array $item) => $item['title'].' — '.__("panel.expiring.events.{$item['event']}", [
|
||||
'when' => $item['at']->diffForHumans(),
|
||||
'date' => $item['at']->isoFormat('LL'),
|
||||
]))
|
||||
|
||||
Reference in New Issue
Block a user