Populate language list

This commit is contained in:
Miguel Nogueira 2020-09-02 19:15:01 +01:00
parent f001a16d4d
commit e7d2c548c0
1 changed files with 10 additions and 4 deletions

View File

@ -54,11 +54,17 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link " href="{{config('app.sitehomepage')}}">{{__('messages.homepagetxt')}}</a> <a class="nav-link " href="{{config('app.sitehomepage')}}">{{__('messages.homepagetxt')}}</a>
</li> </li>
<li class="nav-item"> <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) }}"> <a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
{{ $properties['native'] }} {{ $properties['native'] }}
</a> </a>
</li> </li>
@endforeach
</ul>
</li>
</ul> </ul>
</div> </div>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">