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:
@@ -9,7 +9,7 @@
|
||||
<li class="flex flex-wrap items-center justify-between gap-2 py-2">
|
||||
<div class="flex items-center gap-2">
|
||||
<x-filament::badge :color="$item['event'] === 'closes' ? 'warning' : 'gray'">
|
||||
{{ __('panel.expiring.types.'.$item['type']) }}
|
||||
{{ __("panel.expiring.types.{$item['type']}") }}
|
||||
</x-filament::badge>
|
||||
|
||||
<x-filament::link :href="$item['url']">
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
<span class="text-sm text-gray-500 dark:text-gray-400">
|
||||
{{ __('panel.expiring.events.'.$item['event'], ['when' => $item['at']->diffForHumans(), 'date' => $item['at']->isoFormat('LL')]) }}
|
||||
{{ __("panel.expiring.events.{$item['event']}", ['when' => $item['at']->diffForHumans(), 'date' => $item['at']->isoFormat('LL')]) }}
|
||||
</span>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user