Made it so users can switch languages themselves

This commit is contained in:
stanjg 2018-05-04 13:08:41 +02:00
parent 9a06647435
commit 9ae25538c3
No known key found for this signature in database
GPG key ID: 27D9DF9D28935303
3 changed files with 20 additions and 2 deletions

View file

@ -64,6 +64,7 @@ return [
'last_name' => 'Last Name',
'update_identitity' => 'Update Identity',
'username_help' => 'Your username must be unique to your account, and may only contain the following characters: :requirements.',
'language' => 'Language',
],
'security' => [
'session_mgmt_disabled' => 'Your host has not enabled the ability to manage account sessions via this interface.',

View file

@ -90,6 +90,18 @@
</div>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<label for="language" class="control-label">@lang('base.account.language')</label>
<div>
<select name="language" id="language" class="form-control">
@foreach($languages as $key => $value)
<option value="{{ $key }}" {{ Auth::user()->language !== $key ?: 'selected' }}>{{ $value }}</option>
@endforeach
</select>
</div>
</div>
</div>
</div>
<div class="box-footer with-border">
{!! csrf_field() !!}