i18n(calendar-board): translate mechanic specialization tokens in matrix + legend
Both the row-meta on the master matrix rows and the legend list at the bottom split specialization by '/' and translate each token via __(), matching the pattern already used on Reports.php. 'Suspensie / Frâne' → «Подвеска / Тормоза», 'Motor / Cutie viteze' → «Двигатель / КПП» etc. (all tokens already in the dict). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -346,7 +346,7 @@
|
||||
$color = $u?->color ?: '#94a3b8';
|
||||
$spec = $u?->specialization ?: '';
|
||||
@endphp
|
||||
<div class="cv-legend-item"><span class="cv-legend-dot" style="background:{{ $color }}"></span> {{ $name }} @if($spec)· {{ $spec }} @endif</div>
|
||||
<div class="cv-legend-item"><span class="cv-legend-dot" style="background:{{ $color }}"></span> {{ $name }} @if($spec)· {{ implode(' / ', array_map(fn($p) => __(trim($p)), explode('/', $spec))) }} @endif</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user