src/Repositories/TranslationRepository.php
public function update($id, $text)
    {
        $translation = $this->find($id);
        if (!$translation || $translation->isLocked()) {
            return false;
        }
        $translation->text = $text;
        $saved             = $translation->save();
        if ($saved && $translation->locale === $this->defaultLocale) {
            $this->flagAsUnstable($translation->namespace, $translation->group, $translation->item);
        }
        return $saved;
    }
public function update($id, $text)
    {
        $translation = $this->find($id);
        if (!$translation || $translation->isLocked()) {
            return false;
        }
        $translation->text = $text;
        $saved             = $translation->save();
        if ($saved && $translation->locale === $this->defaultLocale) {
            $this->flagAsUnstable($translation->namespace, $translation->group, $translation->item);
        }
        return $saved;
    }
public function update ( $ id , $ text ) { $ translation = $ this -> find ( $ id ) ; if ( ! $ translation || $ translation -> isLocked ( ) ) { return false ; } $ translation -> text = $ text ; $ saved = $ translation -> save ( ) ; if ( $ saved && $ translation -> locale === $ this -> defaultLocale ) { $ this -> flagAsUnstable ( $ translation -> namespace , $ translation -> group , $ translation -> item ) ; } return $ saved ; }
Update a translation.
If the translation is locked, no update will be made.

@param  array   $attributes     Model attributes
@return boolean
Update a translation . If the translation is locked no update will be made .