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
+4 -4
View File
@@ -99,7 +99,7 @@ class Settings extends Page
->schema([
Forms\Components\Select::make('language')
->label(__('Limbă default'))
->options(['ro' => 'Română', 'ru' => 'Русский', 'en' => 'English'])
->options(['ro' => __('Română'), 'ru' => 'Русский', 'en' => 'English'])
->required(),
Forms\Components\Select::make('currency')
->label(__('Monedă'))
@@ -107,9 +107,9 @@ class Settings extends Page
'MDL' => 'MDL — Leu moldovenesc',
'EUR' => 'EUR — Euro',
'USD' => 'USD — US Dollar',
'RON' => 'RON — Leu românesc',
'RON' => __('RON — Leu românesc'),
'UAH' => 'UAH — Hryvnia',
'RUB' => 'RUB — Rublă',
'RUB' => __('RUB — Rublă'),
])
->required()
->searchable(),
@@ -339,7 +339,7 @@ class Settings extends Page
$r = $svc->sendToUser(
(int) auth()->id(),
'Test AutoCRM',
'Notificările push funcționează ✅',
__('Notificările push funcționează ✅'),
'/app',
);
Notification::make()