src/Web/UrlManager.php
protected function processRequest()
    {
        if (!Reaction::$app->getI18n()->detectLanguageByUrl) {
            return;
        }
        $langPrefixes = Reaction::$app->getI18n()->languagePrefixes;
        $rawUrl = trim($this->app->reqHelper->getPathInfo(), '/');
        $requestPrefix = '';
        $rawUrlParts = explode('/', $rawUrl);
        if (!empty($rawUrlParts) && isset($langPrefixes[$rawUrlParts[0]])) {
            $requestPrefix = $rawUrlParts[0];
            $this->baseUrl = $requestPrefix;
            array_shift($rawUrlParts);
        }
        $rawUrl = '/' . trim(implode('/', $rawUrlParts), '/');
        $requestLanguage = $langPrefixes[$requestPrefix];
        $this->app->reqHelper->setPathInfo($rawUrl);
        $this->app->language = $requestLanguage;
    }
protected function processRequest()
    {
        if (!Reaction::$app->getI18n()->detectLanguageByUrl) {
            return;
        }
        $langPrefixes = Reaction::$app->getI18n()->languagePrefixes;
        $rawUrl = trim($this->app->reqHelper->getPathInfo(), '/');
        $requestPrefix = '';
        $rawUrlParts = explode('/', $rawUrl);
        if (!empty($rawUrlParts) && isset($langPrefixes[$rawUrlParts[0]])) {
            $requestPrefix = $rawUrlParts[0];
            $this->baseUrl = $requestPrefix;
            array_shift($rawUrlParts);
        }
        $rawUrl = '/' . trim(implode('/', $rawUrlParts), '/');
        $requestLanguage = $langPrefixes[$requestPrefix];
        $this->app->reqHelper->setPathInfo($rawUrl);
        $this->app->language = $requestLanguage;
    }
Process current request