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:
@@ -104,7 +104,7 @@
|
||||
<div class="ai-wrap" x-data x-init="$nextTick(() => { const m = $refs.msgs; if (m) m.scrollTop = m.scrollHeight; })">
|
||||
{{-- Sidebar: chat history --}}
|
||||
<div class="ai-side">
|
||||
<button type="button" class="ai-new-btn" wire:click="newChat">+ Conversație nouă</button>
|
||||
<button type="button" class="ai-new-btn" wire:click="newChat">{{ __('+ Conversație nouă') }}</button>
|
||||
@forelse ($chats as $c)
|
||||
<div class="ai-chat-item {{ $c->id === $chatId ? 'active' : '' }}">
|
||||
<span class="ai-chat-title" wire:click="selectChat({{ $c->id }})" style="cursor:pointer;">
|
||||
@@ -114,7 +114,7 @@
|
||||
wire:confirm="Șterge conversația?">×</button>
|
||||
</div>
|
||||
@empty
|
||||
<div style="font-size:11px;color:#9ca3af;padding:8px;">Nicio conversație</div>
|
||||
<div style="font-size:11px;color:#9ca3af;padding:8px;">{{ __('Nicio conversație') }}</div>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
@@ -126,9 +126,9 @@
|
||||
<div class="ai-empty">
|
||||
<div style="font-size:32px;margin-bottom:8px;">✨</div>
|
||||
<div style="font-size:14px;font-weight:600;margin-bottom:4px;">Asistent AI pentru autoservice</div>
|
||||
<div style="font-size:12px;">Întreabă-mă orice — diagnostic, sumar, sugestii, redactare mesaje către clienți...</div>
|
||||
<div style="font-size:12px;">{{ __('Întreabă-mă orice — diagnostic, sumar, sugestii, redactare mesaje către clienți...') }}</div>
|
||||
<div style="font-size:11px;margin-top:16px;color:#9ca3af;">
|
||||
<b>Configurare:</b> mergi la Setări → Asistent AI și adaugă cheia API (Claude / GPT / Gemini).
|
||||
<b>Configurare:</b> {{ __('mergi la Setări → Asistent AI și adaugă cheia API (Claude / GPT / Gemini).') }}
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
@@ -152,7 +152,7 @@
|
||||
@if ($loading)
|
||||
<div class="ai-loading">
|
||||
<span class="dot"></span><span class="dot"></span><span class="dot"></span>
|
||||
<span>asistent gândește...</span>
|
||||
<span>{{ __('asistent gândește...') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@@ -161,12 +161,12 @@
|
||||
<textarea
|
||||
class="ai-input"
|
||||
wire:model="newMessage"
|
||||
placeholder="Scrie mesajul tău..."
|
||||
placeholder="{{ __('Scrie mesajul tău...') }}"
|
||||
@keydown.enter.exact.prevent="$wire.send()"
|
||||
@keydown.shift.enter="$el.value += '\n'"
|
||||
rows="1"
|
||||
></textarea>
|
||||
<button type="submit" class="ai-send" wire:loading.attr="disabled">Trimite</button>
|
||||
<button type="submit" class="ai-send" wire:loading.attr="disabled">{{ __('Trimite') }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user