You've already forked Atomcms-edit
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:
@@ -16,22 +16,22 @@
|
||||
default => '#22c55e',
|
||||
};
|
||||
$overallLabel = match ($overallStatus) {
|
||||
'error' => 'Kritieke Problemen',
|
||||
'warning' => 'Waarschuwingen',
|
||||
default => 'Gezond',
|
||||
'error' => __('commandocentrum.critical_issues'),
|
||||
'warning' => __('commandocentrum.warnings'),
|
||||
default => __('commandocentrum.healthy'),
|
||||
};
|
||||
@endphp
|
||||
|
||||
<div style="display:flex;flex-direction:column;gap:16px;">
|
||||
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:12px;">
|
||||
<x-filament-components::commandocentrum.summary-card label="Gezond" :count="$okCount" color="#22c55e" icon="check" />
|
||||
<x-filament-components::commandocentrum.summary-card label="Waarschuwingen" :count="$warningCount" color="#f59e0b" icon="warning" />
|
||||
<x-filament-components::commandocentrum.summary-card label="Fouten" :count="$errorCount" color="#ef4444" icon="error" />
|
||||
<x-filament-components::commandocentrum.summary-card :label="__('commandocentrum.healthy')" :count="$okCount" color="#22c55e" icon="check" />
|
||||
<x-filament-components::commandocentrum.summary-card :label="__('commandocentrum.warnings')" :count="$warningCount" color="#f59e0b" icon="warning" />
|
||||
<x-filament-components::commandocentrum.summary-card :label="__('commandocentrum.errors')" :count="$errorCount" color="#ef4444" icon="error" />
|
||||
</div>
|
||||
|
||||
<div style="background:{{ $overallColor }}15;border:1px solid {{ $overallColor }}30;border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px;">
|
||||
<div style="width:12px;height:12px;border-radius:50%;background:{{ $overallColor }};"></div>
|
||||
<span style="font-weight:700;color:{{ $overallColor }};font-size:16px;">Systeem Status: {{ $overallLabel }}</span>
|
||||
<span style="font-weight:700;color:{{ $overallColor }};font-size:16px;">{{ __('commandocentrum.system_status') }}: {{ $overallLabel }}</span>
|
||||
</div>
|
||||
|
||||
@if ($errorCount > 0 || $warningCount > 0)
|
||||
|
||||
Reference in New Issue
Block a user