From 40eca53bcbc4204d547bbe909712918ef757d2d0 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Tue, 3 Feb 2026 14:42:14 +0100 Subject: [PATCH] Chore: Add missing translations (#2669) --- app/Filament/Widgets/Concerns/HasChartFilters.php | 6 +++--- lang/en/general.php | 2 ++ resources/views/filament/pages/dashboard.blade.php | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Filament/Widgets/Concerns/HasChartFilters.php b/app/Filament/Widgets/Concerns/HasChartFilters.php index ce12d938..a792e07c 100644 --- a/app/Filament/Widgets/Concerns/HasChartFilters.php +++ b/app/Filament/Widgets/Concerns/HasChartFilters.php @@ -7,9 +7,9 @@ trait HasChartFilters protected function getFilters(): ?array { return [ - '24h' => 'Last 24 hours', - 'week' => 'Last 7 days', - 'month' => 'Last 30 days', + '24h' => __('general.last_24h'), + 'week' => __('general.last_week'), + 'month' => __('general.last_month'), ]; } } diff --git a/lang/en/general.php b/lang/en/general.php index 2d39844c..65ffa88e 100644 --- a/lang/en/general.php +++ b/lang/en/general.php @@ -48,10 +48,12 @@ return [ 'settings' => 'Settings', 'users' => 'Users', 'documentation' => 'Documentation', + 'documentation_description' => 'Need help getting started or configuring your speedtests?', 'view_documentation' => 'View documentation', 'links' => 'Links', 'donate' => 'Donate', 'donations' => 'Donations', + 'donations_description' => 'Support the development and maintenance of Speedtest Tracker by making a donation.', // Roles 'admin' => 'Admin', diff --git a/resources/views/filament/pages/dashboard.blade.php b/resources/views/filament/pages/dashboard.blade.php index 2d9d6821..4dd7514e 100644 --- a/resources/views/filament/pages/dashboard.blade.php +++ b/resources/views/filament/pages/dashboard.blade.php @@ -20,7 +20,7 @@
-

Need help getting started or configuring your speedtests?

+

{{ __('general.documentation_description') }}

@@ -45,7 +45,7 @@
-

Support the development and maintenance of Speedtest Tracker by making a donation.

+

{{ __('general.donations_description') }}