__('filament::layout.direction') === 'ltr', 'mr-4' => __('filament::layout.direction') === 'rtl', ])>
{{ \Illuminate\Support\Str::of(app()->getLocale())->length() > 2 ? \Illuminate\Support\Str::of(app()->getLocale())->substr(0, 2)->upper() : \Illuminate\Support\Str::of(app()->getLocale())->upper() }}
@foreach (config('filament-language-switch.locales') as $key => $locale) @if (!app()->isLocale($key)) @if (config('filament-language-switch.flag')) @else {{ \Illuminate\Support\Str::of($locale['name'])->snake()->upper()->explode('_')->map(function ($string) use ($locale) { return \Illuminate\Support\Str::of($locale['name'])->wordCount() > 1 ? \Illuminate\Support\Str::substr($string, 0, 1) : \Illuminate\Support\Str::substr($string, 0, 2); })->take(2)->implode('') }} @endif {{ \Illuminate\Support\Str::of($locale[config('filament-language-switch.native') ? 'native' : 'name'])->headline() }} @endif @endforeach