public function getLocaled(string $attribute)
    {
        // if always decoded
        if (Any::isArray($this->{$attribute})) {
            return $this->{$attribute}[App::$Request->getLanguage()];
        }

        if (!Any::isStr($attribute) || Str::likeEmpty($this->{$attribute})) {
            return null;
        }

        return Serialize::getDecodeLocale($this->{$attribute});
    }
public function getLocaled(string $attribute)
    {
        // if always decoded
        if (Any::isArray($this->{$attribute})) {
            return $this->{$attribute}[App::$Request->getLanguage()];
        }

        if (!Any::isStr($attribute) || Str::likeEmpty($this->{$attribute})) {
            return null;
        }

        return Serialize::getDecodeLocale($this->{$attribute});
    }
public function getLocaled ( string $ attribute ) { // if always decoded if ( Any :: isArray ( $ this -> { $ attribute } ) ) { return $ this -> { $ attribute } [ App :: $ Request -> getLanguage ( ) ] ; } if ( ! Any :: isStr ( $ attribute ) || Str :: likeEmpty ( $ this -> { $ attribute } ) ) { return null ; } return Serialize :: getDecodeLocale ( $ this -> { $ attribute } ) ; }
Special function for locale stored attributes under serialization.
@param string $attribute
@return array|null|string
Special function for locale stored attributes under serialization .