public function setActiveLocale($locale)
    {
        if (empty($locale)) {
            $this->getCore()->session()->forget(static::ACTIVE_LOCALE_SESSION_KEY);
        } else {
            $this->getCore()->session()->put(static::ACTIVE_LOCALE_SESSION_KEY, $locale);
        }

        return $this;
    }
public function setActiveLocale($locale)
    {
        if (empty($locale)) {
            $this->getCore()->session()->forget(static::ACTIVE_LOCALE_SESSION_KEY);
        } else {
            $this->getCore()->session()->put(static::ACTIVE_LOCALE_SESSION_KEY, $locale);
        }

        return $this;
    }
public function setActiveLocale ( $ locale ) { if ( empty ( $ locale ) ) { $ this -> getCore ( ) -> session ( ) -> forget ( static :: ACTIVE_LOCALE_SESSION_KEY ) ; } else { $ this -> getCore ( ) -> session ( ) -> put ( static :: ACTIVE_LOCALE_SESSION_KEY , $ locale ) ; } return $ this ; }
Set currently active translation locale.

@param string|null $locale   if empty/null, unsets the active locale
@return $this
Set currently active translation locale .