public function importTranslations($path, $type)
    {
        $separator = app('config')->get('antares/translations::export.separator');
        $content   = explode(PHP_EOL, file_get_contents($path));
        $list      = [];
        foreach ($content as $index => $line) {
            if ($index == 0) {
                continue;
            }
            array_push($list, explode($separator, $line));
        }


        $locale   = $list[0][1];
        $language = Languages::where('code', $locale)->first();
        try {
            DB::transaction(function() use($language, $list, $type) {
                $area   = request()->segment(6);
                DB::table('tbl_translations')->where('lang_id', $language->id)->where('area', $area)->delete();
                $insert = [];
                foreach ($list as $item) {
                    if (!isset($item[2]) or ! isset($item[3])) {
                        continue;
                    }
                    try {
                        $value = iconv('WINDOWS-1250', 'UTF-8', $item[3]);
                    } catch (Exception $ex) {
                        $value = $item[3];
                    }

                    $insert[] = [
                        'locale'  => $language->code,
                        'area'    => $area,
                        'group'   => 'antares/' . $item[0],
                        'lang_id' => $language->id,
                        'key'     => trim($item[2], '"'),
                        'value'   => trim($value, '"'),
                    ];
                }
                DB::table('tbl_translations')->insert($insert);
            });
            return true;
        } catch (Exception $e) {
            Log::warning($e);
            return false;
        }
    }