This repository was archived by the owner on Jul 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ public function handle()
3939 ->generateMultiple ($ root , $ umd );
4040
4141 if ($ config ['showOutputMessages ' ]) {
42- echo "Written to : " . PHP_EOL . $ files . PHP_EOL ;
42+ $ this -> info ( "Written to : " . $ files) ;
4343 }
4444
45- exit () ;
45+ return ;
4646 }
4747
4848 $ data = (new Generator ($ config ))
@@ -52,7 +52,7 @@ public function handle()
5252 file_put_contents ($ jsFile , $ data );
5353
5454 if ($ config ['showOutputMessages ' ]) {
55- echo "Written to " . $ jsFile . PHP_EOL ;
55+ $ this -> info ( "Written to : " . $ jsFile) ;
5656 }
5757 }
5858}
Original file line number Diff line number Diff line change @@ -208,7 +208,9 @@ private function allocateLocaleArray($path)
208208 continue ;
209209 }
210210
211- if (isset ($ this ->config ['langFiles ' ]) && !empty ($ this ->config ['langFiles ' ]) && !in_array ($ noExt , $ this ->config ['langFiles ' ])) {
211+ if ((isset ($ this ->config ['langFiles ' ]) && !empty ($ this ->config ['langFiles ' ]) && !in_array ($ noExt , $ this ->config ['langFiles ' ]))
212+ || (isset ($ this ->config ['excludes ' ]) && in_array ($ noExt , $ this ->config ['excludes ' ]))
213+ ) {
212214 continue ;
213215 }
214216
Original file line number Diff line number Diff line change 3030 */
3131 ],
3232
33+ /*
34+ |--------------------------------------------------------------------------
35+ | Excluded files
36+ |--------------------------------------------------------------------------
37+ |
38+ | Exclude translation files you don't need.
39+ |
40+ */
41+ 'excludes ' => [
42+ /*
43+ 'validation',
44+ */
45+ ],
46+
3347 /*
3448 |--------------------------------------------------------------------------
3549 | Output file
You can’t perform that action at this time.
0 commit comments