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:
2026-10-01 11:31:47 +02:00
parent 9f970808ca
commit d80ed1a3e8
6 changed files with 10 additions and 10 deletions

View File

@@ -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'),
]))