public function getCurrentLocale()
    {
        if (is_null($this->currentLocale)) {
            $this->setCurrentLocaleByContext();

            if (!is_admin() || Router::isFrontendAjax()) {
                $this->applyLocale();
            }
        }

        return $this->currentLocale;
    }
public function getCurrentLocale()
    {
        if (is_null($this->currentLocale)) {
            $this->setCurrentLocaleByContext();

            if (!is_admin() || Router::isFrontendAjax()) {
                $this->applyLocale();
            }
        }

        return $this->currentLocale;
    }
public function getCurrentLocale ( ) { if ( is_null ( $ this -> currentLocale ) ) { $ this -> setCurrentLocaleByContext ( ) ; if ( ! is_admin ( ) || Router :: isFrontendAjax ( ) ) { $ this -> applyLocale ( ) ; } } return $ this -> currentLocale ; }
Returns the locale that is currently used.
@return Locale
Returns the locale that is currently used .