/** * Set locale * * @param string $locale */ public function setLocale($locale) { $this->locale = $locale; if ($this->checkTranslateObjectIsSet()) { $this->translation->setLocale($this->locale); } }