Populate language list
This commit is contained in:
parent
f001a16d4d
commit
e7d2c548c0
@ -54,10 +54,16 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link " href="{{config('app.sitehomepage')}}">{{__('messages.homepagetxt')}}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
|
||||
{{ $properties['native'] }}
|
||||
</a>
|
||||
<li class="nav-item dropdown">
|
||||
<ul class="dropdown-menu">
|
||||
@foreach(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
||||
<li class="dropdown-item">
|
||||
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
|
||||
{{ $properties['native'] }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user