src/Node.php
public function getNewTranslation($locale)
    {
        $nodeSource = NodeSource::newWithType(
            $locale,
            $this->getNodeTypeName()
        );

        $this->translations->add($nodeSource);

        return $nodeSource;
    }
public function getNewTranslation($locale)
    {
        $nodeSource = NodeSource::newWithType(
            $locale,
            $this->getNodeTypeName()
        );

        $this->translations->add($nodeSource);

        return $nodeSource;
    }
public function getNewTranslation ( $ locale ) { $ nodeSource = NodeSource :: newWithType ( $ locale , $ this -> getNodeTypeName ( ) ) ; $ this -> translations -> add ( $ nodeSource ) ; return $ nodeSource ; }
Overloading default Translatable functionality for
creating a new translation

@param string $locale
@return Model
Overloading default Translatable functionality for creating a new translation