public function import(LanguageListener $listener, $type, $locale = null)
    {

        $input        = Input::all();
        $locale       = is_null($locale) ? app()->getLocale() : $locale;
        $uploadedFile = array_get($input, 'file');
        if (!app('request')->isMethod('post')) {
            return $this->presenter->import();
        } elseif (!is_null($uploadedFile) and ( $uploadedFile instanceof LaravelUploadedFile)) {
            return $this->uploadTemporary($uploadedFile, $input);
        } elseif (!is_null($uploadedFile) and is_string($uploadedFile)) {
            return ($this->translationRepository->importTranslations($uploadedFile, $type)) ? $listener->importSuccess($type, $locale) : $listener->importFailed();
        }
        return $listener->importFailed();
    }