public function update(TranslationListener $listener, $type)
    {
        $params      = Input::all();
        $first       = head(array_keys(array_get($params, 'name')));
        $translation = Translation::whereId($first)->with('language')->first();
        $code        = $translation->language->code;
        if ($this->translationRepository->updateTranslations($params, $type)) {

            return $listener->updateSuccessfull($type, $code);
        }
        return $listener->updateFailed($type, $code);
    }