i18n(excel-import-wizard): translate stepper (1-4) + Step 3 title + row status badges

- 4 stepper labels (Upload / Mapare coloane / Previzualizare / Confirmare)
  now split so the number stays and only the text runs through __()
- Step 3 heading rewritten with __(':n poziții') placeholder
- 'Selectat: filename.xlsx' hint wrapped
- Row status badges (Găsit/Nou/Nu găsit) split so emoji stays and label
  translates
- 'Articole noi (se vor crea)' summary line wrapped

+8 translations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-18 10:18:39 +00:00
parent 466d182192
commit 7abbfe8509
3 changed files with 24 additions and 8 deletions
@@ -37,13 +37,13 @@
<div class="wiz">
<div class="wiz-steps">
<div class="wiz-step {{ $step >= 1 ? 'active' : '' }} {{ $step > 1 ? 'done' : '' }}">1. Upload</div>
<div class="wiz-step {{ $step >= 1 ? 'active' : '' }} {{ $step > 1 ? 'done' : '' }}">1. {{ __('Upload') }}</div>
<div class="wiz-step-sep"></div>
<div class="wiz-step {{ $step == 2 ? 'active' : '' }} {{ $step > 2 ? 'done' : '' }}">2. Mapare coloane</div>
<div class="wiz-step {{ $step == 2 ? 'active' : '' }} {{ $step > 2 ? 'done' : '' }}">2. {{ __('Mapare coloane') }}</div>
<div class="wiz-step-sep"></div>
<div class="wiz-step {{ $step == 3 ? 'active' : '' }} {{ $step > 3 ? 'done' : '' }}">3. Previzualizare</div>
<div class="wiz-step {{ $step == 3 ? 'active' : '' }} {{ $step > 3 ? 'done' : '' }}">3. {{ __('Previzualizare') }}</div>
<div class="wiz-step-sep"></div>
<div class="wiz-step {{ $step == 4 ? 'active' : '' }}">4. Confirmare</div>
<div class="wiz-step {{ $step == 4 ? 'active' : '' }}">4. {{ __('Confirmare') }}</div>
</div>
<div class="wiz-card">
@@ -65,7 +65,7 @@
<label>{{ __('Fișier Excel (.xlsx) sau CSV *') }}</label>
<input type="file" wire:model="upload" accept=".xlsx,.xls,.csv" />
@if ($upload)
<div style="margin-top:6px;font-size:12px;color:#4a5568;">Selectat: {{ $upload->getClientOriginalName() }}</div>
<div style="margin-top:6px;font-size:12px;color:#4a5568;">{{ __('Selectat:') }} {{ $upload->getClientOriginalName() }}</div>
@endif
</div>
@@ -157,7 +157,7 @@
{{-- STEP 3: Preview --}}
@if ($step === 3)
<h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">Pasul 3: Previzualizare {{ $previewSummary['total'] }} poziții</h2>
<h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">{{ __('Pasul 3: Previzualizare — :n poziții', ['n' => $previewSummary['total']]) }}</h2>
<div class="wiz-summary">
<div class="wiz-summary-item">
@@ -166,7 +166,7 @@
</div>
<div class="wiz-summary-item">
<strong style="color:#92400e;">{{ $previewSummary['new'] }}</strong>
Articole noi (se vor crea)
{{ __('Articole noi (se vor crea)') }}
</div>
<div class="wiz-summary-item">
<strong style="color:#991b1b;">{{ $previewSummary['no_article'] }}</strong>
@@ -189,7 +189,7 @@
<td>{{ $row['brand'] }}</td>
<td>{{ rtrim(rtrim(number_format($row['qty'], 2), '0'), '.') }}</td>
<td>{{ number_format($row['price'], 2) }}</td>
<td><span class="wiz-badge {{ $row['status'] }}">{{ ['found' => '✅ Găsit', 'new' => '⚠️ Nou', 'no_article' => '❓ Nu găsit'][$row['status']] ?? $row['status'] }}</span></td>
<td><span class="wiz-badge {{ $row['status'] }}">{{ ['found' => '✅ ' . __('Găsit'), 'new' => '⚠️ ' . __('Nou'), 'no_article' => '❓ ' . __('Nu găsit')][$row['status']] ?? $row['status'] }}</span></td>
</tr>
@endforeach
</tbody>