You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have and admin panel without routes translates. And In my views if I call dump(\App::getLocale()), allways get en neveres. But es is the default language. If I call dump(\App::getLocale()) in routes.php file shows es.
But If I call Localization::getCurrentLocale()shows correctly es.
My route is for example: blog/new. And Route is not in localization middleware:
Honestly, i can't see what is exactly your issue (and i can't reproduce it).
But, if you want to force the locale (Single locale for the admin panel), set a default locale inside a constructor of your Base Admin Controller and extend it to your Controllers (Use the Localization::setLocale() method).
Or use the Localization::getCurrentLocale() instead of App::getLocale().
Hi, i just install this package. But I'm a little confused.
I have
config/app.php
with:And
config/localization.php
as:I have and admin panel without routes translates. And In my views if I call
dump(\App::getLocale())
, allways geten
neveres
. Butes
is the default language. If I calldump(\App::getLocale())
inroutes.php
file showses
.But If I call
Localization::getCurrentLocale()
shows correctlyes
.My route is for example:
blog/new
. And Route is not in localization middleware:Why locale is set to
en
? How can I do it?Thanks!
The text was updated successfully, but these errors were encountered: