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

@@ -70,7 +70,7 @@
{{ $row['title'] }}
@endif
</td>
<td>{{ __('panel.statistics.types.'.$row['type']) }}</td>
<td>{{ __("panel.statistics.types.{$row['type']}") }}</td>
<td class="num">{{ number_format($row['views'], 0, ',', '.') }}</td>
<td @class(['num', 'st-up' => str_starts_with($delta, '+'), 'st-down' => str_starts_with($delta, '−')])>{{ $delta }}</td>
</tr>
@@ -88,7 +88,7 @@
<ul class="st-unread">
@foreach ($unread as $row)
<li>
<x-filament::badge color="gray" size="sm" style="display: inline-flex">{{ __('panel.statistics.types.'.$row['type']) }}</x-filament::badge>
<x-filament::badge color="gray" size="sm" style="display: inline-flex">{{ __("panel.statistics.types.{$row['type']}") }}</x-filament::badge>
@if ($row['url'])
<x-filament::link :href="$row['url']">{{ $row['title'] }}</x-filament::link>
@else