feat: add i18n support for Vietnamese and English
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-04 10:40:39 +00:00
parent 3a8db5cae6
commit 8c6b71cb8a
64 changed files with 4652 additions and 254 deletions

View File

@@ -35,29 +35,29 @@ class AvgProcessingTimeWidget extends BaseWidget
$avgDisplay = $avgMinutes ? round($avgMinutes) . ' min' : 'N/A';
$avgDescription = $avgMinutes
? 'Avg time from creation to resolution'
: 'No resolved tickets yet';
? __('app.widget_avg_time_desc')
: __('app.widget_no_resolved_tickets');
return [
Stat::make('Resolved Tickets', (string) $totalResolved)
->description('Total resolved/closed tickets')
Stat::make(__('app.widget_resolved_tickets'), (string) $totalResolved)
->description(__('app.widget_total_resolved_closed'))
->descriptionIcon('heroicon-m-check-circle')
->color('success')
->chart([7, 3, 4, 5, 6, 8, $totalResolved]),
Stat::make('Avg Processing Time', $avgDisplay)
Stat::make(__('app.widget_avg_processing_time'), $avgDisplay)
->description($avgDescription)
->descriptionIcon('heroicon-m-clock')
->color('info'),
Stat::make('Pending Tickets', (string) $totalPending)
->description('Still in progress')
Stat::make(__('app.widget_pending_tickets'), (string) $totalPending)
->description(__('app.widget_still_in_progress'))
->descriptionIcon('heroicon-m-arrow-path')
->color('warning')
->chart([3, 5, 4, 6, 5, 4, $totalPending]),
Stat::make('Escalated', (string) $escalatedCount)
->description('Tickets marked as escalated')
Stat::make(__('app.widget_escalated'), (string) $escalatedCount)
->description(__('app.widget_escalated_desc'))
->descriptionIcon('heroicon-m-exclamation-triangle')
->color('danger'),
];