public function getNewTranslation($locale) { $modelName = $this->getTranslationModelName(); $translation = new $modelName(); $translation->setAttribute($this->getLocaleKey(), $locale); $this->translations->add($translation); return $translation; }