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:
@@ -21,8 +21,8 @@
|
||||
|
||||
<div class="rc-grid">
|
||||
<div class="rc-card">
|
||||
<div class="rc-h3">😴 Clienți pierduți <span class="rc-count">{{ $lost->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">Clienți care n-au mai venit de peste 6 luni — bun moment pentru un mesaj de revenire.</div>
|
||||
<div class="rc-h3">{{ __('😴 Clienți pierduți') }} <span class="rc-count">{{ $lost->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">{{ __('Clienți care n-au mai venit de peste 6 luni — bun moment pentru un mesaj de revenire.') }}</div>
|
||||
<table class="rc-tbl">
|
||||
@forelse ($lost as $c)
|
||||
<tr>
|
||||
@@ -31,7 +31,7 @@
|
||||
<div style="font-size:10px;color:#9ca3af;">{{ $c->phone }}</div>
|
||||
</td>
|
||||
<td class="rc-r" style="color:#9ca3af;font-size:11px;">
|
||||
ultima fișă<br>{{ $c->workOrders->first()?->opened_at?->diffForHumans() ?? '—' }}
|
||||
{{ __('ultima fișă') }}<br>{{ $c->workOrders->first()?->opened_at?->diffForHumans() ?? '—' }}
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
@@ -41,8 +41,8 @@
|
||||
</div>
|
||||
|
||||
<div class="rc-card">
|
||||
<div class="rc-h3">🚗 Mașini cu kilometraj mare <span class="rc-count">{{ $highMileage->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">Sugerează revizie / piese de uzură.</div>
|
||||
<div class="rc-h3">{{ __('🚗 Mașini cu kilometraj mare') }} <span class="rc-count">{{ $highMileage->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">{{ __('Sugerează revizie / piese de uzură.') }}</div>
|
||||
<table class="rc-tbl">
|
||||
@forelse ($highMileage as $v)
|
||||
<tr>
|
||||
@@ -62,8 +62,8 @@
|
||||
</div>
|
||||
|
||||
<div class="rc-card">
|
||||
<div class="rc-h3">💰 Fișe neplătite <span class="rc-count">{{ $unpaid->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">Sună-i sau trimite-le un email cu suma datorată.</div>
|
||||
<div class="rc-h3">{{ __('💰 Fișe neplătite') }} <span class="rc-count">{{ $unpaid->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">{{ __('Sună-i sau trimite-le un email cu suma datorată.') }}</div>
|
||||
<table class="rc-tbl">
|
||||
@forelse ($unpaid as $w)
|
||||
<tr>
|
||||
@@ -77,14 +77,14 @@
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="2" class="rc-empty">Niciun rest de încasat. 🎉</td></tr>
|
||||
<tr><td colspan="2" class="rc-empty">{{ __('Niciun rest de încasat. 🎉') }}</td></tr>
|
||||
@endforelse
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="rc-card">
|
||||
<div class="rc-h3">⭐ VIP fără contact recent <span class="rc-count">{{ $vip->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">Clienți VIP cu care nu s-a vorbit de peste 30 zile.</div>
|
||||
<div class="rc-h3">{{ __('⭐ VIP fără contact recent') }} <span class="rc-count">{{ $vip->count() }}</span></div>
|
||||
<div style="font-size:11px;color:#6b7280;margin-bottom:12px;">{{ __('Clienți VIP cu care nu s-a vorbit de peste 30 zile.') }}</div>
|
||||
<table class="rc-tbl">
|
||||
@forelse ($vip as $c)
|
||||
<tr>
|
||||
@@ -97,7 +97,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="2" class="rc-empty">Toți VIP-ii sunt în contact recent.</td></tr>
|
||||
<tr><td colspan="2" class="rc-empty">{{ __('Toți VIP-ii sunt în contact recent.') }}</td></tr>
|
||||
@endforelse
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user