Populate language list

This commit is contained in:
Miguel Nogueira 2020-09-02 19:15:01 +01:00
parent f001a16d4d
commit e7d2c548c0

View File

@ -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>