public function export(LanguageListener $listener, $locale, $type)
    {
        try {
            $separator    = app('config')->get('antares/translations::export.separator');
            $translations = Languages::where('code', $locale)->whereHas('translations', function($query) use($type) {
                        $query->where('area', $type)->orderBy('key', 'desc');
                    })->first()->translations;

            $lines = [implode($separator, ['Segment', 'Locale', 'Key', 'Translation'])];
            foreach ($translations as $translation) {
                $data = [
                    str_replace('antares/', '', $translation->group),
                    $locale,
                    '"' . $translation->key . '"',
                    '"' . $translation->value . '"',
                ];
                array_push($lines, implode($separator, $data));
            }
            $filename = 'export_' . date('Y_m_d_H_i_s') . '_' . $locale . '.csv';

            return Response::make(implode(PHP_EOL, $lines), '200', array(
                        'Content-Type'        => 'text/csv',
                        'Content-Disposition' => 'attachment; filename="' . $filename
            ));
        } catch (Exception $e) {
            dd($e);
            Log::warning($e);
            return $listener->exportFailed($e->getMessage());
        }
    }