Skip to content

Commit 9c24779

Browse files
committed
Add missing translattions
1 parent b7846b0 commit 9c24779

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/Filament/Widgets/Concerns/HasChartFilters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ trait HasChartFilters
77
protected function getFilters(): ?array
88
{
99
return [
10-
'24h' => 'Last 24 hours',
11-
'week' => 'Last 7 days',
12-
'month' => 'Last 30 days',
10+
'24h' => __('general.last_24h'),
11+
'week' => __('general.last_week'),
12+
'month' => __('general.last_month'),
1313
];
1414
}
1515
}

lang/en/general.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@
4848
'settings' => 'Settings',
4949
'users' => 'Users',
5050
'documentation' => 'Documentation',
51+
'documentation_description' => 'Need help getting started or configuring your speedtests?',
5152
'view_documentation' => 'View documentation',
5253
'links' => 'Links',
5354
'donate' => 'Donate',
5455
'donations' => 'Donations',
56+
'donations_description' => 'Support the development and maintenance of Speedtest Tracker by making a donation.',
5557

5658
// Roles
5759
'admin' => 'Admin',

resources/views/filament/pages/dashboard.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class="col-span-1"
2020
</x-slot>
2121

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

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

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

5151
<div class="mt-5">

0 commit comments

Comments
 (0)