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 5
5
use Elegantly \Translator \Facades \Translator ;
6
6
use Illuminate \Console \Command ;
7
7
8
+ use function Laravel \Prompts \spin ;
9
+
8
10
class FixGrammarTranslationsCommand extends Command
9
11
{
10
12
use TranslatorCommandTrait;
@@ -45,11 +47,14 @@ public function handle(): int
45
47
continue ;
46
48
}
47
49
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... '
53
58
);
54
59
55
60
$ this ->table (
Original file line number Diff line number Diff line change 5
5
use Elegantly \Translator \Facades \Translator ;
6
6
use Illuminate \Console \Command ;
7
7
8
+ use function Laravel \Prompts \spin ;
9
+
8
10
class TranslateTranslationsCommand extends Command
9
11
{
10
12
use TranslatorCommandTrait;
@@ -49,12 +51,15 @@ public function handle(): int
49
51
continue ;
50
52
}
51
53
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... '
58
63
);
59
64
60
65
$ this ->table (
You can’t perform that action at this time.
0 commit comments