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
@@ -7,27 +7,27 @@
class="fi-btn fi-btn-color-primary"
style="padding: 10px 24px; background: #6366f1; color: white; border-radius: 8px; border: none; cursor: pointer; font-weight: 500;"
wire:loading.attr="disabled">
<span wire:loading.remove>💾 Salvează setările</span>
<span wire:loading>Se salvează...</span>
<span wire:loading.remove>{{ __('💾 Salvează setările') }}</span>
<span wire:loading>{{ __('Se salvează...') }}</span>
</button>
</div>
</form>
<div style="margin-top:24px;background:#f9fafb;border:1px dashed #e5e7eb;border-radius:8px;padding:16px;font-size:13px;line-height:1.7;">
<b style="color:#6366f1;">📚 Cum se face plata în sistem:</b>
<b style="color:#6366f1;">{{ __('📚 Cum se face plata în sistem:') }}</b>
<ol style="margin:8px 0 0 18px;padding:0;">
<li>Operatorul (tu) creezi factură: <code>/admin/companies/{id}</code> „Generează factură"</li>
<li>Tenantul vede factura în interiorul lui la <code>https://{slug}.service.mir.md/billing</code></li>
<li>Click „Plătește" → opțiuni: card (Stripe), PayPal, sau transfer manual</li>
<li>{{ __('Operatorul (tu) creezi factură:') }} <code>/admin/companies/{id}</code> {{ __('→ „Generează factură"') }}</li>
<li>{{ __('Tenantul vede factura în interiorul lui la') }} <code>https://{slug}.service.mir.md/billing</code></li>
<li>{{ __('Click „Plătește" → opțiuni: card (Stripe), PayPal, sau transfer manual') }}</li>
<li>La succes: webhook automat status=paid + extends company.active_until</li>
<li>La transfer manual: tenant trimite confirmare; operator click „Marchează plătit" în /admin/subscriptions</li>
<li>{{ __('La transfer manual: tenant trimite confirmare; operator click „Marchează plătit" în /admin/subscriptions') }}</li>
</ol>
<div style="margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb;">
<b> Pentru a primi plăți LIVE:</b>
<b>{{ __('⚠ Pentru a primi plăți LIVE:') }}</b>
<ul style="margin:4px 0 0 18px;padding:0;font-size:12px;">
<li>Stripe: înregistrează cont la <a href="https://dashboard.stripe.com" target="_blank" style="color:#6366f1;">dashboard.stripe.com</a> ia keys setează webhook la URL-ul de mai sus</li>
<li>PayPal: <a href="https://developer.paypal.com/dashboard/applications" target="_blank" style="color:#6366f1;">developer.paypal.com</a> creează aplicație live ia credentials</li>
<li>Transfer bancar: pune doar IBAN-ul tău, fără cont gateway</li>
<li>{{ __('Stripe: înregistrează cont la') }} <a href="https://dashboard.stripe.com" target="_blank" style="color:#6366f1;">dashboard.stripe.com</a> {{ __('→ ia keys → setează webhook la URL-ul de mai sus') }}</li>
<li>PayPal: <a href="https://developer.paypal.com/dashboard/applications" target="_blank" style="color:#6366f1;">developer.paypal.com</a> {{ __('→ creează aplicație live → ia credentials') }}</li>
<li>{{ __('Transfer bancar: pune doar IBAN-ul tău, fără cont gateway') }}</li>
</ul>
</div>
</div>
@@ -88,7 +88,7 @@
@if ($this->record->plan)
<span class="cv-badge cv-badge-gray">📦 {{ $this->record->plan->name }}</span>
@else
<span class="cv-badge cv-badge-warning"> Fără plan</span>
<span class="cv-badge cv-badge-warning">{{ __('⚠ Fără plan') }}</span>
@endif
@if ($daysLeft !== null)
@if ($daysLeft < 0)
@@ -112,39 +112,39 @@
<div class="value">{{ $stats['users'] }}</div>
</div>
<div class="cv-card">
<div class="label">Clienți</div>
<div class="label">{{ __('Clienți') }}</div>
<div class="value">{{ $stats['clients'] }}</div>
</div>
<div class="cv-card">
<div class="label">Mașini</div>
<div class="label">{{ __('Mașini') }}</div>
<div class="value">{{ $stats['vehicles'] }}</div>
</div>
<div class="cv-card {{ $stats['work_orders_open'] > 0 ? 'warn' : '' }}">
<div class="label">Fișe lucru</div>
<div class="label">{{ __('Fișe lucru') }}</div>
<div class="value">{{ $stats['work_orders'] }}</div>
<div class="sub">{{ $stats['work_orders_open'] }} deschise</div>
</div>
<div class="cv-card {{ $stats['parts_low_stock'] > 0 ? 'warn' : '' }}">
<div class="label">Piese în stoc</div>
<div class="label">{{ __('Piese în stoc') }}</div>
<div class="value">{{ $stats['parts'] }}</div>
@if ($stats['parts_low_stock'])
<div class="sub"> {{ $stats['parts_low_stock'] }} sub minim</div>
@endif
</div>
<div class="cv-card success">
<div class="label">Venit luna curentă</div>
<div class="label">{{ __('Venit luna curentă') }}</div>
<div class="value">{{ number_format($stats['revenue_this_month'], 0, ',', ' ') }}</div>
<div class="sub">{{ $this->record->settings['currency'] ?? 'MDL' }}</div>
</div>
<div class="cv-card">
<div class="label">Venit luna trecută</div>
<div class="label">{{ __('Venit luna trecută') }}</div>
<div class="value">{{ number_format($stats['revenue_last_month'], 0, ',', ' ') }}</div>
<div class="sub">{{ $this->record->settings['currency'] ?? 'MDL' }}</div>
</div>
<div class="cv-card">
<div class="label">Storage media</div>
<div class="value">{{ $stats['storage_mb'] }}</div>
<div class="sub">MB folosiți</div>
<div class="sub">{{ __('MB folosiți') }}</div>
</div>
<div class="cv-card {{ $stats['last_login'] && \Carbon\Carbon::parse($stats['last_login'])->diffInDays() > 14 ? 'danger' : '' }}">
<div class="label">Ultima logare</div>
@@ -163,18 +163,18 @@
<div class="cv-section-title">💳 Istoric abonamente</div>
@if ($this->record->subscriptions->isEmpty())
<div style="padding:32px;text-align:center;color:#9ca3af;font-size:13px;border:1px dashed #e5e7eb;border-radius:8px;">
Niciun abonament emis. Folosește „Generează factură" de sus.
{{ __('Niciun abonament emis. Folosește „Generează factură" de sus.') }}
</div>
@else
<table class="cv-table">
<thead>
<tr>
<th>Factură</th>
<th>{{ __('Factură') }}</th>
<th>Plan</th>
<th>Perioadă</th>
<th>Sumă</th>
<th>{{ __('Perioadă') }}</th>
<th>{{ __('Sumă') }}</th>
<th>Status</th>
<th>Plătit</th>
<th>{{ __('Plătit') }}</th>
</tr>
</thead>
<tbody>
@@ -202,17 +202,17 @@
<div class="cv-section-title"> Configurare tenant</div>
<div class="cv-grid" style="grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));">
<div class="cv-card">
<div class="label">Limbă</div>
<div class="label">{{ __('Limbă') }}</div>
<div class="value" style="font-size:14px;">
{{ ['ro' => 'Română', 'ru' => 'Русский', 'en' => 'English'][$this->record->settings['language'] ?? 'ro'] ?? '—' }}
</div>
</div>
<div class="cv-card">
<div class="label">Monedă</div>
<div class="label">{{ __('Monedă') }}</div>
<div class="value" style="font-size:14px;">{{ $this->record->settings['currency'] ?? 'MDL' }}</div>
</div>
<div class="cv-card">
<div class="label">Tarif normo-oră</div>
<div class="label">{{ __('Tarif normo-oră') }}</div>
<div class="value" style="font-size:14px;">{{ $this->record->settings['labor_rate'] ?? '—' }}</div>
</div>
<div class="cv-card">