src/Traits/ErrorMessageTrait.php
public function getTranslate(string $field): string
    {
        $trans = $this->getTranslates();

        if (isset($trans[$field])) {
            return $trans[$field];
        }

        if ($this->_prettifyName) {
            return Helper::prettifyFieldName($field);
        }

        return $field;
    }
public function getTranslate(string $field): string
    {
        $trans = $this->getTranslates();

        if (isset($trans[$field])) {
            return $trans[$field];
        }

        if ($this->_prettifyName) {
            return Helper::prettifyFieldName($field);
        }

        return $field;
    }
public function getTranslate ( string $ field ) : string { $ trans = $ this -> getTranslates ( ) ; if ( isset ( $ trans [ $ field ] ) ) { return $ trans [ $ field ] ; } if ( $ this -> _prettifyName ) { return Helper :: prettifyFieldName ( $ field ) ; } return $ field ; }
get field translate string.
@param string $field
@return string
get field translate string .