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:
@@ -23,13 +23,13 @@
|
||||
|
||||
@if ($newToken)
|
||||
<div class="at-card" style="border-color: #f59e0b; border-width: 2px;">
|
||||
<h3 style="font-weight:600;font-size:15px;margin-bottom:6px;">⚠ Token-ul tău nou (afișat o singură dată):</h3>
|
||||
<h3 style="font-weight:600;font-size:15px;margin-bottom:6px;">{{ __('⚠ Token-ul tău nou (afișat o singură dată):') }}</h3>
|
||||
<div class="at-token" x-data="{ copied: false }">
|
||||
<span x-ref="t">{{ $newToken }}</span>
|
||||
<button type="button"
|
||||
@click="navigator.clipboard.writeText($refs.t.innerText); copied = true; setTimeout(() => copied = false, 2000)"
|
||||
style="margin-left:12px;background:#3b82f6;color:white;padding:4px 10px;border:none;border-radius:4px;cursor:pointer;font-size:11px;">
|
||||
<span x-show="!copied">📋 Copiază</span>
|
||||
<span x-show="!copied">{{ __('📋 Copiază') }}</span>
|
||||
<span x-show="copied" x-cloak>✓ Copiat</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -42,13 +42,13 @@
|
||||
<div class="at-card" style="margin-top:16px;">
|
||||
@php $tokens = $this->getTokens(); @endphp
|
||||
@if (empty($tokens))
|
||||
<div class="at-empty">Niciun token generat. Folosește butonul „Generează token" de sus.</div>
|
||||
<div class="at-empty">{{ __('Niciun token generat. Folosește butonul „Generează token" de sus.') }}</div>
|
||||
@else
|
||||
<table class="at-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nume</th>
|
||||
<th>Folosit ultima dată</th>
|
||||
<th>{{ __('Nume') }}</th>
|
||||
<th>{{ __('Folosit ultima dată') }}</th>
|
||||
<th>Creat</th>
|
||||
<th>Permisiuni</th>
|
||||
<th></th>
|
||||
@@ -65,7 +65,7 @@
|
||||
<button type="button"
|
||||
wire:click="deleteToken({{ $t['id'] }})"
|
||||
wire:confirm="Revoci token-ul „{{ $t['name'] }}"? Apelurile API vor eșua imediat."
|
||||
class="at-revoke">Revocă</button>
|
||||
class="at-revoke">{{ __('Revocă') }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -75,13 +75,13 @@
|
||||
</div>
|
||||
|
||||
<div class="at-doc" style="margin-top:16px;">
|
||||
<b>Cum folosești API-ul:</b>
|
||||
<b>{{ __('Cum folosești API-ul:') }}</b>
|
||||
<ol style="margin:8px 0 0 20px;">
|
||||
<li>Obține token cu <code>POST /api/v1/login</code> cu <code>email</code>+<code>password</code> JSON</li>
|
||||
<li>Sau generează unul aici (recomandat pentru integrări permanente)</li>
|
||||
<li>Adaugă header <code>Authorization: Bearer <token></code> la fiecare request</li>
|
||||
<li>{{ __('Obține token cu') }} <code>POST /api/v1/login</code> cu <code>email</code>+<code>password</code> JSON</li>
|
||||
<li>{{ __('Sau generează unul aici (recomandat pentru integrări permanente)') }}</li>
|
||||
<li>{{ __('Adaugă header') }} <code>Authorization: Bearer <token></code> la fiecare request</li>
|
||||
<li>Endpoints disponibile: <code>/api/v1/clients</code>, <code>/api/v1/vehicles</code>, <code>/api/v1/work-orders</code> (GET, POST, PATCH, DELETE)</li>
|
||||
<li>Tot apelul trebuie făcut pe subdomain-ul tău: <code>https://{{ tenant()?->slug ?? 'YOURSLUG' }}.service.mir.md/api/v1/...</code></li>
|
||||
<li>{{ __('Tot apelul trebuie făcut pe subdomain-ul tău:') }} <code>https://{{ tenant()?->slug ?? 'YOURSLUG' }}.service.mir.md/api/v1/...</code></li>
|
||||
</ol>
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
|
||||
Reference in New Issue
Block a user