private function getLocale(string $locale = null) : string { if (null === $locale) { if (null === $this->forcedLocale) { return $this->requestHelper->getCurrentLocale(); } else { return $this->forcedLocale; } } return $locale; }