feat(i18n): fix widgets, pipeline & mechanic boards + missing translations

Follow-up to previous i18n pass — user reported many visible RO strings on
EN/RU locales because auto-wrap missed:
  - Stat::make() first-arg labels in StatsOverview, FinanceOverview, PlatformStats
  - $heading static in LowStockTable (converted to getHeading() method)
  - Pipeline board Blade view: 40+ literal strings wrapped with {{ __() }}
  - Mechanic board Blade view: statuses, buttons, block modal
  - PipelineBoard.php hardcoded tag labels, stage labels, notify strings
  - MechanicBoard.php confirmBlock notification

Added human RU + EN translations for the visible strings shown in the
screenshots (dashboard widgets, Client/Vehicle list breadcrumbs & columns,
pipeline board topbar/stats/filters/cards/detail panel/quick actions,
mechanic board stats/statuses/block modal). All 306 tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-15 05:31:26 +00:00
parent f7fc69077b
commit 2d447e6294
9 changed files with 381 additions and 156 deletions
+10 -10
View File
@@ -33,29 +33,29 @@ class PlatformStats extends BaseWidget
->count();
return [
Stat::make('Tenants total', $total)
->description('Toate companiile')
Stat::make(__('Tenants total'), $total)
->description(__('Toate companiile'))
->descriptionIcon('heroicon-m-building-office-2')
->color('primary')
->url(\App\Filament\Central\Resources\CompanyResource::getUrl('index')),
Stat::make('Active', $active)
Stat::make(__('Active'), $active)
->description(__("✓ Pe abonament plătit"))
->descriptionIcon('heroicon-m-check-circle')
->color('success'),
Stat::make('În trial', $trial)
->description($trial > 0 ? 'Posibili clienți noi' : '—')
Stat::make(__('În trial'), $trial)
->description($trial > 0 ? __('Posibili clienți noi') : '—')
->descriptionIcon('heroicon-m-clock')
->color('warning'),
Stat::make('Expiră < 7 zile', $expiring)
->description($expiring > 0 ? '⚠ Acțiune necesară' : 'Toate ok')
Stat::make(__('Expiră < 7 zile'), $expiring)
->description($expiring > 0 ? __('⚠ Acțiune necesară') : __('Toate ok'))
->descriptionIcon('heroicon-m-exclamation-triangle')
->color($expiring > 0 ? 'danger' : 'success'),
Stat::make('Venit luna curentă', number_format($mrr, 0, ',', ' ') . ' MDL')
Stat::make(__('Venit luna curentă'), number_format($mrr, 0, ',', ' ') . ' MDL')
->description(__('MRR realizat'))
->descriptionIcon('heroicon-m-banknotes')
->color('success'),
Stat::make('Facturi neplătite', $overdue)
->description($overdue > 0 ? 'Verifică și amintește' : 'Toate plătite')
Stat::make(__('Facturi neplătite'), $overdue)
->description($overdue > 0 ? __('Verifică și amintește') : __('Toate plătite'))
->descriptionIcon('heroicon-m-exclamation-circle')
->color($overdue > 0 ? 'danger' : 'gray')
->url(\App\Filament\Central\Resources\SubscriptionResource::getUrl('index') . '?activeTab=overdue'),