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:
@@ -6,15 +6,15 @@
|
||||
'email' => $email ?? null,
|
||||
'city' => $city ?? null,
|
||||
'logoUrl' => $logoUrl ?? null,
|
||||
'title' => 'Mașina e gata',
|
||||
])
|
||||
<h2 style="margin:0 0 12px;font-size:20px;color:{{ $themeColor }};">✅ Mașina dvs. este gata!</h2>
|
||||
'title' => {{ __('\'Mașina e gata\',
|
||||
])') }}
|
||||
<h2 style="margin:0 0 12px;font-size:20px;color:{{ $themeColor }};">{{ __('✅ Mașina dvs. este gata!') }}</h2>
|
||||
<p>Bună ziua{{ $client?->name ? ', ' . $client->name : '' }},</p>
|
||||
<p>Vă informăm că lucrările pentru autoturismul dvs. au fost finalizate. Puteți veni să-l ridicați.</p>
|
||||
<p>{{ __('Vă informăm că lucrările pentru autoturismul dvs. au fost finalizate. Puteți veni să-l ridicați.') }}</p>
|
||||
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin:16px 0;border:1px solid #e5e7eb;border-radius:8px;">
|
||||
<tr><td style="padding:14px;">
|
||||
<div style="font-size:11px;text-transform:uppercase;color:#6b7280;letter-spacing:.5px;">Fișă lucru</div>
|
||||
<div style="font-size:11px;text-transform:uppercase;color:#6b7280;letter-spacing:.5px;">{{ __('Fișă lucru') }}</div>
|
||||
<div style="font-size:16px;font-weight:700;margin-top:4px;">{{ $workOrder->number }}</div>
|
||||
@if ($vehicle)
|
||||
<div style="margin-top:10px;font-size:13px;">
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin:16px 0;background:#f9fafb;border-radius:8px;">
|
||||
<tr>
|
||||
<td style="padding:12px 16px;font-size:13px;color:#374151;">Total</td>
|
||||
<td style="padding:12px 16px;font-size:13px;color:#374151;">{{ __('Total') }}</td>
|
||||
<td style="padding:12px 16px;font-size:13px;text-align:right;font-weight:600;">{{ number_format($total, 2, '.', ' ') }} {{ $currency }}</td>
|
||||
</tr>
|
||||
@if ($paid > 0)
|
||||
@@ -38,7 +38,7 @@
|
||||
@endif
|
||||
@if ($balance > 0)
|
||||
<tr>
|
||||
<td style="padding:12px 16px;font-size:14px;font-weight:700;border-top:1px solid #e5e7eb;color:{{ $themeColor }};">Rest de plată</td>
|
||||
<td style="padding:12px 16px;font-size:14px;font-weight:700;border-top:1px solid #e5e7eb;color:{{ $themeColor }};">{{ __('Rest de plată') }}</td>
|
||||
<td style="padding:12px 16px;font-size:16px;text-align:right;font-weight:700;border-top:1px solid #e5e7eb;color:{{ $themeColor }};">{{ number_format($balance, 2, '.', ' ') }} {{ $currency }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@@ -46,11 +46,11 @@
|
||||
|
||||
@if ($workOrder->recommendations)
|
||||
<div style="background:#fef3c7;border-left:4px solid #f59e0b;padding:12px;margin:16px 0;border-radius:6px;font-size:13px;">
|
||||
<b style="color:#92400e;">⚠ Recomandări:</b><br>
|
||||
<b style="color:#92400e;">{{ __('⚠ Recomandări:') }}</b><br>
|
||||
{{ $workOrder->recommendations }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<p style="margin-top:20px;">Atașat veți găsi <b>fișa de lucru completă</b> (PDF).</p>
|
||||
<p>Vă mulțumim pentru încredere!</p>
|
||||
<p style="margin-top:20px;">{{ __('Atașat veți găsi') }} <b>{{ __('fișa de lucru completă') }}</b> (PDF).</p>
|
||||
<p>{{ __('Vă mulțumim pentru încredere!') }}</p>
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user