protected function getParamLocale(HTTPRequest $request)
    {
        $queryParam = FluentDirectorExtension::config()->get('query_param');
        $locale = (string)($request->param($queryParam) ?: $request->requestVar($queryParam));
        return $locale;
    }