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:
@@ -88,7 +88,7 @@ class ApplicationInfolist
|
||||
->state(fn (ApplicationReply $record) => __('panel.replies.by', [
|
||||
'name' => $record->user_name ?? '—',
|
||||
'when' => $record->created_at?->isoFormat('LLL'),
|
||||
]).' · '.__('panel.replies.channels.'.$record->channel))
|
||||
]).' · '.__("panel.replies.channels.{$record->channel}"))
|
||||
->color('gray'),
|
||||
|
||||
TextEntry::make('body')
|
||||
|
||||
@@ -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