Add translations for remaining parts of dashboard view in Dutch and English
MODIFY
resources/lang/en/general.php
resources/lang/en/general.php
@@ -10,5 +10,11 @@ return [
'dashboard' => 'Dashboard',
'search' => 'Search',
'settings' => 'Settings',
- 'logout' => 'Log out'
+ 'logout' => 'Log out',
+
+ 'total_spent' => 'Total Spent',
+ 'most_expensive_tag' => 'Most Expensive Tag',
+ 'most_expensive_day' => 'Most Expensive Day',
+
+ 'analysis' => 'Analysis'
];

MODIFY
resources/lang/nl/general.php
resources/lang/nl/general.php
@@ -10,5 +10,11 @@ return [
'dashboard' => 'Overzicht',
'search' => 'Zoeken',
'settings' => 'Instellingen',
- 'logout' => 'Uitloggen'
+ 'logout' => 'Uitloggen',
+
+ 'total_spent' => 'Totaal Uitgegeven',
+ 'most_expensive_tag' => 'Duurste Etiket',
+ 'most_expensive_day' => 'Duurste Dag',
+
+ 'analysis' => 'Analyse'
];

MODIFY
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
<div class="box">
<div class="box__section row">
<div class="row__column">
- <div class="mb-1" style="color: #A7AEBB;">Total Spent</div>
+ <div class="mb-1" style="color: #A7AEBB;">{{ __('general.total_spent') }}</div>
<h2 style="font-size: 20px;">{{ $currency->symbol }} {{ number_format($totalSpendings / 100, 2) }}</h2>
</div>
<div class="row__column row__column--compact ml-2">
<div class="box">
<div class="box__section row">
<div class="row__column">
- <div class="mb-1" style="color: #A7AEBB;">Most Expensive Tag</div>
+ <div class="mb-1" style="color: #A7AEBB;">{{ __('general.most_expensive_tag') }}</div>
<h2 style="font-size: 20px;">{{ count($mostExpensiveTag) ? $mostExpensiveTag[0]->name : '-' }}</h2>
</div>
<div class="row__column row__column--compact ml-2">
<div class="box">
<div class="box__section row">
<div class="row__column">
- <div class="mb-1" style="color: #A7AEBB;">Most Expensive Day</div>
+ <div class="mb-1" style="color: #A7AEBB;">{{ __('general.most_expensive_day') }}</div>
<h2 style="font-size: 20px;">{{ count($mostExpensiveWeekday) ? __('calendar.weekdays.' . $mostExpensiveWeekday[0]->weekday) : '-' }}</h2>
</div>
<div class="row__column row__column--compact ml-2">
<div class="box mb-4">
@if (count($tagsBreakdown))
<div class="box__section">
- <div class="mb-2">Breakdown</div>
+ <div class="mb-2">{{ __('general.analysis') }}</div>
<div class="ct-chart ct-perfect-fifth" style="max-width: 500px; margin-left: auto; margin-right: auto;"></div>
</div>
@endif
<div class="column">
<div class="box">
<div class="box__section text-center" style="padding: 15px;">
- <a href="/earnings">Earnings ({{ $earningsCount }}) <i class="fas fa-arrow-right"></i></a>
+ <a href="/earnings">{{ __('general.earnings') }} ({{ $earningsCount }}) <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>
<div class="column">
<div class="box">
<div class="box__section text-center" style="padding: 15px;">
- <a href="/spendings">Spendings ({{ $spendingsCount }}) <i class="fas fa-arrow-right"></i></a>
+ <a href="/spendings">{{ __('general.spendings') }} ({{ $spendingsCount }}) <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>

Add translations for remaining parts of dashboard view in Dutch and English