public function key()
    {
        if ( ! $this->isTranslated()) {
            return $this->key;
        }

        $parts = explode('.', $this->key);

        array_splice($parts, $this->localeIndex, 0, $this->getLocalePlaceholder());

        return trim(implode('.', $parts), '.');
    }
public function key()
    {
        if ( ! $this->isTranslated()) {
            return $this->key;
        }

        $parts = explode('.', $this->key);

        array_splice($parts, $this->localeIndex, 0, $this->getLocalePlaceholder());

        return trim(implode('.', $parts), '.');
    }
public function key ( ) { if ( ! $ this -> isTranslated ( ) ) { return $ this -> key ; } $ parts = explode ( '.' , $ this -> key ) ; array_splice ( $ parts , $ this -> localeIndex , 0 , $ this -> getLocalePlaceholder ( ) ) ; return trim ( implode ( '.' , $ parts ) , '.' ) ; }
Returns the key in dot notation, with locale placeholder where relevant.

@return string|null
Returns the key in dot notation with locale placeholder where relevant .