Translate empty_state partial
MODIFY
resources/lang/en/general.php
resources/lang/en/general.php
@@ -26,5 +26,7 @@ return [
'profile' => 'Profile',
'account' => 'Account',
- 'preferences' => 'Preferences'
+ 'preferences' => 'Preferences',
+
+ 'empty_state' => 'There aren\'t any :resource yet'
];

MODIFY
resources/lang/nl/general.php
resources/lang/nl/general.php
@@ -26,5 +26,7 @@ return [
'profile' => 'Profiel',
'account' => 'Account',
- 'preferences' => 'Voorkeuren'
+ 'preferences' => 'Voorkeuren',
+
+ 'empty_state' => 'Er zijn nog geen :resource'
];

MODIFY
resources/views/partials/empty_state.blade.php
resources/views/partials/empty_state.blade.php
<div class="box__section text-center">
- <div class="mb-1">There aren't any {{ $payload }} yet</div>
- <a href="/{{ $payload }}/create" style="font-size: 14px;">Create</a>
+ <div class="mb-1">{{ __('general.empty_state', ['resource' => strtolower(__('general.' . $payload))]) }}</div>
+ <a href="/{{ $payload }}/create" style="font-size: 14px;">{{ __('actions.create') }}</a>
</div>

Translate empty_state partial