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()
39
39
->generateMultiple ($ root , $ umd );
40
40
41
41
if ($ config ['showOutputMessages ' ]) {
42
- echo "Written to : " . PHP_EOL . $ files . PHP_EOL ;
42
+ $ this -> info ( "Written to : " . $ files) ;
43
43
}
44
44
45
- exit () ;
45
+ return ;
46
46
}
47
47
48
48
$ data = (new Generator ($ config ))
@@ -52,7 +52,7 @@ public function handle()
52
52
file_put_contents ($ jsFile , $ data );
53
53
54
54
if ($ config ['showOutputMessages ' ]) {
55
- echo "Written to " . $ jsFile . PHP_EOL ;
55
+ $ this -> info ( "Written to : " . $ jsFile) ;
56
56
}
57
57
}
58
58
}
Original file line number Diff line number Diff line change @@ -208,7 +208,9 @@ private function allocateLocaleArray($path)
208
208
continue ;
209
209
}
210
210
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
+ ) {
212
214
continue ;
213
215
}
214
216
Original file line number Diff line number Diff line change 30
30
*/
31
31
],
32
32
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
+
33
47
/*
34
48
|--------------------------------------------------------------------------
35
49
| Output file
You can’t perform that action at this time.
0 commit comments