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,10 +54,16 @@
<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">
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}"> <ul class="dropdown-menu">
{{ $properties['native'] }} @foreach(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
</a> <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> </li>
</ul> </ul>
</div> </div>