Added warning in middleware

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-12-19 20:34:45 +00:00
parent 4a0d4f5862
commit a5947b8109

View file

@ -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);
}