FEATURE: add language selector in admin
This commit is contained in:
@@ -17,7 +17,21 @@
|
|||||||
|
|
||||||
<header class="row nav top-bar">
|
<header class="row nav top-bar">
|
||||||
<section class="logo columns small-1 medium-3 large-2">
|
<section class="logo columns small-1 medium-3 large-2">
|
||||||
|
<ul class="dropdown menu language_bar_chooser" data-dropdown-menu>
|
||||||
|
<li>
|
||||||
|
<a href="#">@lang(LaravelLocalization::getCurrentLocaleName())</a>
|
||||||
|
<ul class="menu">
|
||||||
|
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
||||||
|
<li @if(LaravelLocalization::getCurrentLocale() == $localeCode) class="active" @endif>
|
||||||
|
<a rel="alternate" hreflang="{{$localeCode}}"
|
||||||
|
href="{{LaravelLocalization::getLocalizedURL($localeCode) }}">
|
||||||
|
{{ $properties['native'] }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="heading columns small-10 medium-8 large-8">
|
<section class="heading columns small-10 medium-8 large-8">
|
||||||
|
|||||||
Reference in New Issue
Block a user