Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/Filament/Widgets/Concerns/HasChartFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
}
}
2 changes: 2 additions & 0 deletions lang/en/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
'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',
Expand Down
4 changes: 2 additions & 2 deletions resources/views/filament/pages/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class="col-span-1"
</x-slot>

<div class="text-sm text-zinc-600 dark:text-zinc-300">
<p>Need help getting started or configuring your speedtests?</p>
<p>{{ __('general.documentation_description') }}</p>
</div>

<div class="mt-5">
Expand All @@ -45,7 +45,7 @@ class="col-span-1"
</x-slot>

<div class="text-sm text-zinc-600 dark:text-zinc-300">
<p>Support the development and maintenance of Speedtest Tracker by making a donation.</p>
<p>{{ __('general.donations_description') }}</p>
</div>

<div class="mt-5">
Expand Down