Translate settings like name, password and more
MODIFY
resources/lang/en/general.php
resources/lang/en/general.php
@@ -12,5 +12,12 @@ return [
'earnings' => 'Earnings',
'spendings' => 'Spendings',
- 'recent' => 'Recent'
+ 'recent' => 'Recent',
+
+ 'avatar' => 'Avatar',
+ 'name' => 'Name',
+ 'email' => 'E-mail',
+ 'verify' => 'Verify',
+ 'password' => 'Password',
+ 'language' => 'Language'
];

MODIFY
resources/lang/nl/general.php
resources/lang/nl/general.php
@@ -12,5 +12,12 @@ return [
'earnings' => 'Inkomsten',
'spendings' => 'Uitgaven',
- 'recent' => 'Recente'
+ 'recent' => 'Recente',
+
+ 'avatar' => 'Avatar',
+ 'name' => 'Naam',
+ 'email' => 'E-mail',
+ 'verify' => 'Controleer',
+ 'password' => 'Wachtwoord',
+ 'language' => 'Taal'
];

MODIFY
resources/views/settings.blade.php
resources/views/settings.blade.php
<form method="POST" enctype="multipart/form-data">
{{ csrf_field() }}
<div class="input input--small">
- <label>Avatar</label>
+ <label>{{ __('general.avatar') }}</label>
@if (Auth::user()->avatar)
<img src="/storage/avatars/{{ Auth::user()->avatar }}" style="width: 200px; height: 200px; border-radius: 5px; object-fit: cover;" />
@else
@include('partials.validation_error', ['payload' => 'avatar'])
</div>
<div class="input input--small">
- <label>Name</label>
+ <label>{{ __('general.name') }}</label>
<input type="text" name="name" value="{{ Auth::user()->name }}" />
</div>
<div class="input input--small">
- <label>E-mail</label>
+ <label>{{ __('general.email') }}</label>
<input type="text" name="email" value="{{ Auth::user()->email }}" />
</div>
<div class="input input--small">
- <label>Password</label>
+ <label>{{ __('general.password') }}</label>
<input type="password" name="password" />
@include('partials.validation_error', ['payload' => 'password'])
</div>
<div class="input input--small">
- <label>Verify Password</label>
+ <label>{{ __('general.verify') }} {{ __('general.password') }}</label>
<input type="password" name="password_confirmation" />
@include('partials.validation_error', ['payload' => 'password_confirmation'])
</div>
<div class="input input--small">
- <label>Language</label>
+ <label>{{ __('general.language') }}</label>
<select name="language">
@foreach ($languages as $key => $value)
<option value="{{ $key }}" @if (Auth::user()->language === $key) selected @endif>{{ $value }}</option>

Translate settings like name, password and more