feat(i18n): mega-wrap 494 raw RO strings + 269 lang entries + 161 human RU/163 EN

Broad sweep across the whole codebase:
- Blade views (39 files, 315 wraps): tag-text and title/placeholder/alt
  attributes wrapped with {{ __() }}. Excludes scripts, styles, @php,
  @verbatim, {{ }}, {!! !!}, comments to avoid touching interpolations.
- PHP (54 files, 179 wraps): array 'key' => 'RO value' patterns and
  list items with diacritics wrapped with __(). Reverted __() inside
  const arrays (PHP disallows non-constant expressions).
- Added 269 new keys to lang/{ru,en}.json (identity fallback for
  unknowns → 161 human RU + 163 EN translations added for the most
  common enums, stages, roles, statuses, payment methods, vehicle
  categories, warehouse, portal, form actions.

Missing translations fall back to RO so the UI never breaks. All 306
tests pass; view cache compiles cleanly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-15 05:53:22 +00:00
parent 2d447e6294
commit 3911012c65
68 changed files with 1211 additions and 429 deletions
@@ -38,17 +38,17 @@
@php $pending = $this->getPendingItems(); @endphp
<div style="background:#ecfdf5;border-left:3px solid #10b981;padding:12px 14px;margin-bottom:12px;border-radius:6px;font-size:13px;">
<div style="font-weight:600;color:#065f46;margin-bottom:4px;">📦 Mod recepție {{ $purchase->number }}</div>
<div style="color:#047857;">Scanează codurile pieselor pentru a marca ca recepționate. <strong>{{ count($pending) }}</strong> linii neîncasate.</div>
<div style="color:#047857;">{{ __('Scanează codurile pieselor pentru a marca ca recepționate.') }} <strong>{{ count($pending) }}</strong> {{ __('linii neîncasate.') }}</div>
@if (! empty($receivedToasts))
<div style="margin-top:8px;font-size:12px;color:#065f46;">
<strong>Recepție acum:</strong>
<strong>{{ __('Recepție acum:') }}</strong>
@foreach (array_reverse(array_slice($receivedToasts, -5)) as $t)
<div>· {{ $t['at'] }} {{ $t['article'] }}: {{ rtrim(rtrim(number_format($t['qty_received'], 2), '0'), '.') }}/{{ rtrim(rtrim(number_format($t['qty_total'], 2), '0'), '.') }}</div>
@endforeach
</div>
@endif
<div style="margin-top:8px;">
<a href="{{ route('filament.tenant.resources.purchases.edit', ['record' => $purchase->id]) }}" style="font-size:12px;color:#0369a1;"> Deschide comanda în Filament</a>
<a href="{{ route('filament.tenant.resources.purchases.edit', ['record' => $purchase->id]) }}" style="font-size:12px;color:#0369a1;">{{ __('↗ Deschide comanda în Filament') }}</a>
</div>
</div>
@endif
@@ -59,14 +59,14 @@
<div class="sc-cam" wire:ignore>
<div id="reader"></div>
<div class="placeholder" x-show="!running && !error" x-cloak>
Apasă „Pornește" pentru a deschide camera.
{{ __('Apasă „Pornește" pentru a deschide camera.') }}
</div>
<div class="placeholder" x-show="error" x-text="error" x-cloak></div>
</div>
<div class="sc-controls">
<button class="sc-btn" type="button" @click="start" x-show="!running">📷 Pornește scanner</button>
<button class="sc-btn gray" type="button" @click="stop" x-show="running"> Oprește</button>
<button class="sc-btn" type="button" @click="start" x-show="!running">{{ __('📷 Pornește scanner') }}</button>
<button class="sc-btn gray" type="button" @click="stop" x-show="running">{{ __('⏹ Oprește') }}</button>
</div>
<div x-show="lastDecoded" class="sc-status" x-cloak>
@@ -76,7 +76,7 @@
<div class="sc-manual">
<form wire:submit="submitManual" style="display:flex;gap:8px;align-items:stretch;">
<input type="text" wire:model="manual" placeholder="Sau introdu manual (cod articol / barcode)…" />
<button type="submit" class="sc-btn">Caută</button>
<button type="submit" class="sc-btn">{{ __('Caută') }}</button>
</form>
</div>
</div>