Added warning in middleware
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4a0d4f5862
commit
a5947b8109
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ class CheckLocale
|
|||
|
||||
}
|
||||
|
||||
if (config('app.locale') != Helper::mapLegacyLocale($language)) {
|
||||
\Log::warning('Your current APP_LOCALE in your .env is set to "'.config('app.locale').'" and should be updated to be "'.Helper::mapLegacyLocale($language).'" in '.base_path().'/.env. Translations may display unexpectedly until this is updated.');
|
||||
}
|
||||
|
||||
\App::setLocale(Helper::mapLegacyLocale($language));
|
||||
return $next($request);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue