File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed
Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 55use Elegantly \Translator \Facades \Translator ;
66use Illuminate \Console \Command ;
77
8+ use function Laravel \Prompts \spin ;
9+
810class FixGrammarTranslationsCommand extends Command
911{
1012 use TranslatorCommandTrait;
@@ -45,11 +47,14 @@ public function handle(): int
4547 continue ;
4648 }
4749
48- $ translations = Translator::fixGrammarTranslations (
49- $ locale ,
50- $ namespace ,
51- $ keys ,
52- $ service
50+ $ translations = spin (
51+ fn () => Translator::fixGrammarTranslations (
52+ $ locale ,
53+ $ namespace ,
54+ $ keys ,
55+ $ service
56+ ),
57+ 'Fetching response... '
5358 );
5459
5560 $ this ->table (
Original file line number Diff line number Diff line change 55use Elegantly \Translator \Facades \Translator ;
66use Illuminate \Console \Command ;
77
8+ use function Laravel \Prompts \spin ;
9+
810class TranslateTranslationsCommand extends Command
911{
1012 use TranslatorCommandTrait;
@@ -49,12 +51,15 @@ public function handle(): int
4951 continue ;
5052 }
5153
52- $ translations = Translator::translateTranslations (
53- $ from ,
54- $ target ,
55- $ namespace ,
56- $ keys ,
57- $ service
54+ $ translations = spin (
55+ fn () => Translator::translateTranslations (
56+ $ from ,
57+ $ target ,
58+ $ namespace ,
59+ $ keys ,
60+ $ service
61+ ),
62+ 'Fetching response... '
5863 );
5964
6065 $ this ->table (
You can’t perform that action at this time.
0 commit comments