RainLab\Translate\Classes\Translator::getLocale PHP Метод

getLocale() публичный Метод

Returns the active locale set by this instance.
public getLocale ( boolean $fromSession = false ) : string
$fromSession boolean Look in the session.
Результат string
    public function getLocale($fromSession = false)
    {
        if ($fromSession && ($locale = $this->getSessionLocale())) {
            return $locale;
        }
        return $this->activeLocale;
    }