diff --git a/core/lib/Thelia/Core/Translation/Translator.php b/core/lib/Thelia/Core/Translation/Translator.php index 444604e28..397a7e095 100755 --- a/core/lib/Thelia/Core/Translation/Translator.php +++ b/core/lib/Thelia/Core/Translation/Translator.php @@ -40,7 +40,11 @@ class Translator extends BaseTranslator public function getLocale() { - return $this->container->get('request')->getSession()->getLang()->getLocale(); + if($this->container->isScopeActive('request') && $this->container->has('request')) { + return $this->container->get('request')->getSession()->getLang()->getLocale(); + } + + return $this->locale; } /**