diff --git a/app/bootstrap.php.d/30-trans.php b/app/bootstrap.php.d/30-trans.php index e18aff5..9ec8a36 100644 --- a/app/bootstrap.php.d/30-trans.php +++ b/app/bootstrap.php.d/30-trans.php @@ -50,7 +50,7 @@ $app->get('/', function (Request $request) use ($app) { $foundLocale = $app['translator']->getLocale(); foreach ($app['locales'] as $locale) { - if ($cookie === $locale || $accept->has($locale)) { + if ($cookieValue === $locale || $accept->has($locale)) { $foundLocale = $locale; break; }