diff --git a/app/Http/Middleware/CheckLocale.php b/app/Http/Middleware/CheckLocale.php index ea66c59efa..3c525d172c 100644 --- a/app/Http/Middleware/CheckLocale.php +++ b/app/Http/Middleware/CheckLocale.php @@ -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); }