public function setTranslations($key, array $translations)
    {
        $this->guardAgainstNonTranslatableAttribute($key);

        foreach ($translations as $locale => $translation) {
            $this->setTranslation($key, $locale, $translation);
        }

        return $this;
    }
public function setTranslations($key, array $translations)
    {
        $this->guardAgainstNonTranslatableAttribute($key);

        foreach ($translations as $locale => $translation) {
            $this->setTranslation($key, $locale, $translation);
        }

        return $this;
    }
public function setTranslations ( $ key , array $ translations ) { $ this -> guardAgainstNonTranslatableAttribute ( $ key ) ; foreach ( $ translations as $ locale => $ translation ) { $ this -> setTranslation ( $ key , $ locale , $ translation ) ; } return $ this ; }
Set the translations.

@param  string  $key
@param  array   $translations

@return self
Set the translations .