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:
@@ -24,7 +24,7 @@
|
||||
<h2 style="font-size:16px;font-weight:600;margin-bottom:12px;">🔎 Decode VIN</h2>
|
||||
<form wire:submit="decode" style="display:flex;gap:12px;flex-wrap:wrap;">
|
||||
<input type="text" wire:model="vin" class="vs-input" placeholder="WBAFE81070CY34521" maxlength="17" style="flex:1;min-width:300px;">
|
||||
<button type="submit" class="vs-btn">Decodează</button>
|
||||
<button type="submit" class="vs-btn">{{ __('Decodează') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
@if ($decoded['valid'])
|
||||
<h3 style="font-size:14px;font-weight:600;margin-bottom:16px;">✅ VIN decodificat</h3>
|
||||
<div class="vs-grid">
|
||||
<div><div class="vs-stat-l">Producător</div><div class="vs-stat-v">{{ $decoded['manufacturer'] }}</div></div>
|
||||
<div><div class="vs-stat-l">Țară</div><div class="vs-stat-v">{{ $decoded['country'] }}</div></div>
|
||||
<div><div class="vs-stat-l">{{ __('Producător') }}</div><div class="vs-stat-v">{{ $decoded['manufacturer'] }}</div></div>
|
||||
<div><div class="vs-stat-l">{{ __('Țară') }}</div><div class="vs-stat-v">{{ $decoded['country'] }}</div></div>
|
||||
<div><div class="vs-stat-l">An model (estimat)</div><div class="vs-stat-v">{{ $decoded['year'] ?? '—' }}</div></div>
|
||||
<div><div class="vs-stat-l">WMI</div><div class="vs-stat-v" style="font-family:monospace;">{{ $decoded['wmi'] }}</div></div>
|
||||
<div><div class="vs-stat-l">Serial</div><div class="vs-stat-v" style="font-family:monospace;font-size:12px;">{{ $decoded['serial'] }}</div></div>
|
||||
@@ -47,9 +47,9 @@
|
||||
@php $matches = $this->vehicleMatches(); @endphp
|
||||
@if ($matches->isNotEmpty())
|
||||
<div class="vs-card">
|
||||
<h3 style="font-size:14px;font-weight:600;margin-bottom:12px;">🚗 Mașini cu acest VIN în CRM</h3>
|
||||
<h3 style="font-size:14px;font-weight:600;margin-bottom:12px;">{{ __('🚗 Mașini cu acest VIN în CRM') }}</h3>
|
||||
<table class="vs-tbl">
|
||||
<thead><tr><th>VIN</th><th>Marca/Model</th><th>Plate</th><th>Client</th><th>Km</th></tr></thead>
|
||||
<thead><tr><th>VIN</th><th>Marca/Model</th><th>Plate</th><th>{{ __('Client') }}</th><th>Km</th></tr></thead>
|
||||
<tbody>
|
||||
@foreach ($matches as $v)
|
||||
<tr>
|
||||
@@ -67,9 +67,9 @@
|
||||
@endif
|
||||
|
||||
<div class="vs-card">
|
||||
<h2 style="font-size:16px;font-weight:600;margin-bottom:12px;">📦 Caută piesă în catalog</h2>
|
||||
<h2 style="font-size:16px;font-weight:600;margin-bottom:12px;">{{ __('📦 Caută piesă în catalog') }}</h2>
|
||||
<input type="text" wire:model.live.debounce.300ms="partsQuery" class="vs-input"
|
||||
placeholder="Nume, cod articol, brand..." style="font-size:14px;text-transform:none;font-family:inherit;">
|
||||
placeholder="{{ __('Nume, cod articol, brand...') }}" style="font-size:14px;text-transform:none;font-family:inherit;">
|
||||
|
||||
@php $parts = $this->partsResults(); @endphp
|
||||
@if ($partsQuery)
|
||||
@@ -78,7 +78,7 @@
|
||||
<div style="color:#9ca3af;text-align:center;padding:20px;">Niciun rezultat pentru „{{ $partsQuery }}"</div>
|
||||
@else
|
||||
<table class="vs-tbl">
|
||||
<thead><tr><th>Denumire</th><th>Cod</th><th>Brand</th><th>Stoc</th><th>Preț</th></tr></thead>
|
||||
<thead><tr><th>Denumire</th><th>{{ __('Cod') }}</th><th>Brand</th><th>{{ __('Stoc') }}</th><th>{{ __('Preț') }}</th></tr></thead>
|
||||
<tbody>
|
||||
@foreach ($parts as $p)
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user