Skip to content

Instantly share code, notes, and snippets.

@beyazitkolemen
Last active August 1, 2017 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyazitkolemen/64ed46727d01b26c5ce77eab772e85c2 to your computer and use it in GitHub Desktop.
Save beyazitkolemen/64ed46727d01b26c5ce77eab772e85c2 to your computer and use it in GitHub Desktop.
<li class="dropdown "><a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ LaravelLocalization::getCurrentLocaleName() }}<i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
<li>
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, '/', [], true) }}">
{{ $properties['native'] }}
</a>
</li>
@endforeach
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment