Commit 836f2419 authored by Nicolas Widart's avatar Nicolas Widart

Add a language selector

parent b62d698f
......@@ -8,7 +8,26 @@
<span class="icon-bar"></span>
</a>
<div class="navbar-right">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag"></i>
<span>
{{ LaravelLocalization::getCurrentLocaleName() }}
<i class="caret"></i>
</span>
</a>
<ul class="dropdown-menu language-menu">
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
<li {{ App::getLocale() == $localeCode ? ' class="active"' : '' }}>
<a rel="alternate" hreflang="{{$localeCode}}" href="{{LaravelLocalization::getLocalizedURL($localeCode) }}">
{{{ $properties['native'] }}}
</a>
</li>
@endforeach
</ul>
</li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment