src/Extension/FluentExtension.php
protected function getRecordLocale()
    {
        $localeCode = $this->owner->getSourceQueryParam('Fluent.Locale');
        if ($localeCode) {
            $locale = Locale::getByLocale($localeCode);
            if ($locale) {
                return $locale;
            }
        }
        return Locale::getCurrentLocale();
    }
protected function getRecordLocale()
    {
        $localeCode = $this->owner->getSourceQueryParam('Fluent.Locale');
        if ($localeCode) {
            $locale = Locale::getByLocale($localeCode);
            if ($locale) {
                return $locale;
            }
        }
        return Locale::getCurrentLocale();
    }
protected function getRecordLocale ( ) { $ localeCode = $ this -> owner -> getSourceQueryParam ( 'Fluent.Locale' ) ; if ( $ localeCode ) { $ locale = Locale :: getByLocale ( $ localeCode ) ; if ( $ locale ) { return $ locale ; } } return Locale :: getCurrentLocale ( ) ; }
Get locale this record was originally queried from, or belongs to

@return Locale|null
Get locale this record was originally queried from or belongs to