/** * Overloading default Translatable functionality for * creating a new translation * * @param string $locale * @return Model */ public function getNewTranslation($locale) { $nodeSource = NodeSource::newWithType($locale, $this->getNodeTypeName()); $this->translations->add($nodeSource); return $nodeSource; }
protected function getNodeSource($locale = 'en', $type = 'project') { return NodeSource::newWithType($locale, $type); }