feat: add full i18n support to Commandocentrum

- Replace all hardcoded Dutch/English strings with __() translation calls
- Update 13 Blade components to use translation keys
- Update Commandocentrum.php controller with translation calls
- Add comprehensive Dutch (nl.json) and English (en.json) translations
- 150+ translation keys for UI labels, messages, and notifications
- Supports all 21 languages available in the lang/ directory
This commit is contained in:
root
2026-05-19 21:49:39 +02:00
parent c6246615bc
commit 2f30a058a4
16 changed files with 585 additions and 3003 deletions
@@ -21,22 +21,22 @@
<div style="background:#3b82f615;padding:10px;border-radius:12px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#3b82f6" stroke-width="2"><path d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"/></svg>
</div>
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">Emulator</span>
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">{{ __('commandocentrum.emulator') }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;">
<span style="color:#64748b;">Status</span>
<span style="color:#64748b;">{{ __('commandocentrum.status') }}</span>
<span style="font-weight:600;color:{{ $serviceColor }};background:{{ $serviceColor }}15;padding:2px 10px;border-radius:20px;font-size:12px;">{{ $serviceStatus }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;">
<span style="color:#64748b;">Online</span>
<span style="color:#64748b;">{{ __('commandocentrum.online') }}</span>
<span style="font-weight:600;color:#1e293b;">{{ $emulatorStatus }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;">
<span style="color:#64748b;">Gebruikers</span>
<span style="color:#64748b;">{{ __('commandocentrum.users') }}</span>
<span style="font-weight:700;color:#22c55e;font-size:18px;">{{ $onlineUsers }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;">
<span style="color:#64748b;">Database</span>
<span style="color:#64748b;">{{ __('commandocentrum.database') }}</span>
<span style="font-weight:600;color:{{ $dbColor }};">{{ $dbStatus }}</span>
</div>
</div>
@@ -48,15 +48,15 @@
<span style="font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8;">Nitro</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;">
<span style="color:#64748b;">Client</span>
<span style="color:#64748b;">{{ __('commandocentrum.client') }}</span>
<span style="font-weight:600;color:{{ $clientColor }};background:{{ $clientColor }}15;padding:2px 10px;border-radius:20px;font-size:12px;">{{ $clientText }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f1f5f9;">
<span style="color:#64748b;">Renderer</span>
<span style="color:#64748b;">{{ __('commandocentrum.renderer') }}</span>
<span style="font-weight:600;color:{{ $rendererColor }};background:{{ $rendererColor }}15;padding:2px 10px;border-radius:20px;font-size:12px;">{{ $rendererText }}</span>
</div>
<div style="display:flex;justify-content:space-between;padding:10px 0;">
<span style="color:#64748b;">Webroot</span>
<span style="color:#64748b;">{{ __('commandocentrum.webroot_status') }}</span>
<span style="font-weight:600;color:{{ $webrootColor }};background:{{ $webrootColor }}15;padding:2px 10px;border-radius:20px;font-size:12px;">{{ $webrootText }}</span>
</div>
</div>