@php $blank = ['editingId' => null, 'code' => '', 'name' => '', 'rtl' => false, 'copyFrom' => 'en', 'showModal' => true]; @endphp @if ($current) @endif {{-- ═══════════ Installed languages with coverage ═══════════ --}}
@foreach ($languages as $lang) @php $l = $lang['model']; $st = $lang['stats']; $isCur = $l->code === $locale; @endphp
@if ($l->is_default) {{ __('Default') }} @else @endif
@php $edit = ['editingId' => $l->id, 'code' => $l->code, 'name' => $l->name, 'rtl' => (bool) $l->rtl, 'showModal' => true]; @endphp @unless ($l->is_default) @endunless
@endforeach
{{-- ═══════════ The strings ═══════════ --}}

{{ $current?->name ?? $locale }}

@if ($locale === 'en') {{ __('English is the source — each key is its own text, so there is nothing to fill in here.') }} @else {{ __(':done of :total translated', ['done' => $stats['done'], 'total' => $stats['total']]) }}@if ($orphans > 0) · {{ __(':n saved strings no longer appear in the product. They are kept, not deleted.', ['n' => $orphans]) }}@endif @endif

@if ($stats['missing'] > 0 && $locale !== 'en') @endif
@forelse ($rows as $key) @php $slot = \App\Livewire\Admin\Languages\Index::slot($key); @endphp
{{ $key }}
@if (str_contains($key, ':'))
{{ __('Keep placeholders like :name exactly as they are.') }}
@endif
@empty @endforelse
@if ($rows->total() > 0)
{{ $rows->links() }}
@endif
{{-- ═══════════ Add / edit language ═══════════ --}}
@error('code')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror
@unless ($editingId)

{{ __('Copying an existing language gives you something to edit instead of a blank page. No redeploy needed.') }}

@endunless