Browse Source

fix: 🐛 settings::locale:available string to array conversion

IceToast 3 years ago
parent
commit
1a45c16feb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/views/layouts/main.blade.php

+ 1 - 1
resources/views/layouts/main.blade.php

@@ -66,7 +66,7 @@
                             aria-labelledby="changeLocale">
                             aria-labelledby="changeLocale">
                             <form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
                             <form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
                                 @csrf
                                 @csrf
-                                @foreach (json_decode(config('SETTINGS::LOCALE:AVAILABLE')) as $key)
+                                @foreach (explode(',', config('SETTINGS::LOCALE:AVAILABLE')) as $key)
                                     <button class="dropdown-item" name="inputLocale" value="{{ $key }}">
                                     <button class="dropdown-item" name="inputLocale" value="{{ $key }}">
                                         {{ __($key) }}
                                         {{ __($key) }}
                                     </button>
                                     </button>