Skip to content
Snippets Groups Projects
Commit 883e8235 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

changed active language style

parent cf9a60c3
No related branches found
No related tags found
2 merge requests!2010Development,!2001Resolve "Improve Localization"
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
<h2>{{ trans("lang-selector.lang.$language", [], $language) }}</h2> <h2>{{ trans("lang-selector.lang.$language", [], $language) }}</h2>
<ul> <ul>
@foreach($locales as $locale => $locale_native) @foreach($locales as $locale => $locale_native)
<li><a @if(LaravelLocalization::getCurrentLocale() === $locale)class="active" @endif rel="alternate" hreflang="{{ $locale }}" href="{{ LaravelLocalization::getLocalizedURL($locale, null, [], true) }}">{{ $locale_native }}</a></li> @if(LaravelLocalization::getCurrentLocale() === $locale)
<li>{{ $locale_native }}</li>
@else
<li><a rel="alternate" hreflang="{{ $locale }}" href="{{ LaravelLocalization::getLocalizedURL($locale, null, [], true) }}">{{ $locale_native }}</a></li>
@endif
@endforeach @endforeach
</ul> </ul>
@endforeach @endforeach
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment