File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ public function handle()
37
37
if ($ multipleFiles ) {
38
38
$ files = (new Generator ($ config ))
39
39
->generateMultiple ($ root , $ umd );
40
- echo "Written to : " . PHP_EOL . $ files . PHP_EOL ;
40
+
41
+ if ($ config ['showOutputMessages ' ]) {
42
+ echo "Written to : " . PHP_EOL . $ files . PHP_EOL ;
43
+ }
44
+
41
45
exit ();
42
46
}
43
47
@@ -47,6 +51,8 @@ public function handle()
47
51
$ jsFile = base_path () . config ('vue-i18n-generator.jsFile ' );
48
52
file_put_contents ($ jsFile , $ data );
49
53
50
- echo "Written to " . $ jsFile . PHP_EOL ;
54
+ if ($ config ['showOutputMessages ' ]) {
55
+ echo "Written to " . $ jsFile . PHP_EOL ;
56
+ }
51
57
}
52
58
}
Original file line number Diff line number Diff line change 52
52
|
53
53
*/
54
54
'i18nLib ' => 'vue-i18n ' ,
55
+
56
+ /*
57
+ |--------------------------------------------------------------------------
58
+ | Output messages
59
+ |--------------------------------------------------------------------------
60
+ |
61
+ | Specify if the library should show "written to" messages
62
+ | after generating json files.
63
+ |
64
+ */
65
+ 'showOutputMessages ' => false ,
55
66
];
You can’t perform that action at this time.
0 commit comments