Fix issues with localizations not applying properly
This commit is contained in:
@@ -61,7 +61,7 @@ class ConfigServiceProvider extends ServiceProvider
|
||||
$this->app->config->set('app.url', $appDomain);
|
||||
}
|
||||
|
||||
if ($appLocale = $this->app->config->get('setting.app.locale')) {
|
||||
if ($appLocale = $this->app->config->get('setting.app_locale')) {
|
||||
$this->app->config->set('app.locale', $appLocale);
|
||||
$this->app->translator->setLocale($appLocale);
|
||||
}
|
||||
|
||||
@@ -55,8 +55,7 @@ class Localize
|
||||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
// Early exit optimization.
|
||||
if (!$this->config->get('setting.automatic_localization')) {
|
||||
if (!(bool) $this->config->get('setting.automatic_localization')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user