/** * Change current locale * * @param string $code Locale code 'en_US' etc * * @return $this */ public function change($code) { $this->locale->setActive($code); $this->data['active'] = $this->locale->getActive(); return $this; }