Translate dropdowns in layout view
MODIFY
resources/lang/dk/pages.php
resources/lang/dk/pages.php
<?php
return [
- 'settings' => 'Indstillinger'
+ 'settings' => 'Indstillinger',
+ 'log_out' => 'Log Ud'
];

MODIFY
resources/lang/en/pages.php
resources/lang/en/pages.php
<?php
return [
- 'settings' => 'Settings'
+ 'settings' => 'Settings',
+ 'log_out' => 'Log Out'
];

MODIFY
resources/lang/nl/pages.php
resources/lang/nl/pages.php
<?php
return [
- 'settings' => 'Instellingen'
+ 'settings' => 'Instellingen',
+ 'log_out' => 'Log Uit'
];

MODIFY
resources/views/layout.blade.php
resources/views/layout.blade.php
</span>
<ul slot="menu">
<li>
- <a href="/earnings/create">New earning</a>
+ <a href="/earnings/create">{{ __('actions.create') }} {{ __('general.earning') }}</a>
</li>
<li>
- <a href="/spendings/create">New spending</a>
+ <a href="/spendings/create">{{ __('actions.create') }} {{ __('general.spending') }}</a>
</li>
</ul>
</dropdown>
</span>
<ul slot="menu">
<li>
- <a href="/settings">Settings</a>
+ <a href="/settings">{{ __('pages.settings') }}</a>
</li>
<li>
- <a href="/logout">Log out</a>
+ <a href="/logout">{{ __('pages.log_out') }}</a>
</li>
</ul>
</dropdown>

Translate dropdowns in layout view