Made it so users can switch languages themselves
This commit is contained in:
parent
9a06647435
commit
9ae25538c3
3 changed files with 20 additions and 2 deletions
|
@ -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.',
|
||||
|
|
|
@ -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() !!}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue