src/Extension/FluentExtension.php
protected function getDataQueryLocale(DataQuery $dataQuery = null)
    {
        if (!$dataQuery) {
            return null;
        }
        $localeCode = $dataQuery->getQueryParam('Fluent.Locale') ?: FluentState::singleton()->getLocale();
        if ($localeCode) {
            return Locale::getByLocale($localeCode);
        }
        return null;
    }
protected function getDataQueryLocale(DataQuery $dataQuery = null)
    {
        if (!$dataQuery) {
            return null;
        }
        $localeCode = $dataQuery->getQueryParam('Fluent.Locale') ?: FluentState::singleton()->getLocale();
        if ($localeCode) {
            return Locale::getByLocale($localeCode);
        }
        return null;
    }
protected function getDataQueryLocale ( DataQuery $ dataQuery = null ) { if ( ! $ dataQuery ) { return null ; } $ localeCode = $ dataQuery -> getQueryParam ( 'Fluent.Locale' ) ? : FluentState :: singleton ( ) -> getLocale ( ) ; if ( $ localeCode ) { return Locale :: getByLocale ( $ localeCode ) ; } return null ; }
Get current locale from given dataquery

@param DataQuery $dataQuery
@return Locale|null
Get current locale from given dataquery