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

@@ -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