mirror of https://github.com/pixelfed/pixelfed.git
Update language view
This commit is contained in:
parent
01fb5af19e
commit
ba47d50792
|
@ -1,7 +1,7 @@
|
||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
@php($current = App::getLocale())
|
||||||
<div class="container mt-5">
|
<div class="container mt-5">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<p class="font-weight-bold text-lighter text-uppercase">{{__('site.language')}}</p>
|
<p class="font-weight-bold text-lighter text-uppercase">{{__('site.language')}}</p>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
<div class="card-body row pl-md-5 ml-md-5">
|
<div class="card-body row pl-md-5 ml-md-5">
|
||||||
@foreach(App\Util\Localization\Localization::languages() as $lang)
|
@foreach(App\Util\Localization\Localization::languages() as $lang)
|
||||||
<div class="col-12 col-md-4 mb-2">
|
<div class="col-12 col-md-4 mb-2">
|
||||||
<a href="/i/lang/{{$lang}}" class="{{App::getLocale() == $lang ? 'font-weight-bold text-primary' : 'text-muted'}} pr-3 b-3">{{locale_get_display_language($lang, $lang)}}</a>
|
<a href="/i/lang/{{$lang}}" class="{{$current == $lang ? 'font-weight-bold text-primary' : 'text-muted'}} pr-3 b-3">{{locale_get_display_language($lang, $lang)}}</a>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue