Console/FindTranslations.php
protected function writeToFile(array $translations): void
    {
        $excel = app('excel');
        $filename = config('netcore.module-translate.translations_file');

        $excel
            ->create($filename, function (LaravelExcelWriter $writer) use ($translations) {
                $writer->setTitle('Translations');

                $writer->sheet('Translations', function (LaravelExcelWorksheet $sheet) use ($translations) {
                    $sheet->fromArray($translations, '', 'A1');

                    $sheet->row(1, function ($row) {
                        $row->setFontWeight('bold');
                    });
                });
            })
            ->store('xlsx', resource_path('seed_translations'));
    }
protected function writeToFile(array $translations): void
    {
        $excel = app('excel');
        $filename = config('netcore.module-translate.translations_file');

        $excel
            ->create($filename, function (LaravelExcelWriter $writer) use ($translations) {
                $writer->setTitle('Translations');

                $writer->sheet('Translations', function (LaravelExcelWorksheet $sheet) use ($translations) {
                    $sheet->fromArray($translations, '', 'A1');

                    $sheet->row(1, function ($row) {
                        $row->setFontWeight('bold');
                    });
                });
            })
            ->store('xlsx', resource_path('seed_translations'));
    }
protected function writeToFile ( array $ translations ) : void { $ excel = app ( 'excel' ) ; $ filename = config ( 'netcore.module-translate.translations_file' ) ; $ excel -> create ( $ filename , function ( LaravelExcelWriter $ writer ) use ( $ translations ) { $ writer -> setTitle ( 'Translations' ) ; $ writer -> sheet ( 'Translations' , function ( LaravelExcelWorksheet $ sheet ) use ( $ translations ) { $ sheet -> fromArray ( $ translations , '' , 'A1' ) ; $ sheet -> row ( 1 , function ( $ row ) { $ row -> setFontWeight ( 'bold' ) ; } ) ; } ) ; } ) -> store ( 'xlsx' , resource_path ( 'seed_translations' ) ) ; }
Write translations to the file.

@param array $translations
@return void
Write translations to the file .