Skip to content

Commit 3967d58

Browse files
committed
Copy changes
1 parent ebd596a commit 3967d58

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Command/TranslationHelperCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,27 @@ public function handle()
2828

2929
foreach ($translationFiles as $file) {
3030
$translationData = $this->getAlreadyTranslatedKeys($file);
31-
$this->line("lang " . str_replace('.json', '', basename($file)));
31+
$this->line("Language: " . str_replace('.json', '', basename($file)));
3232
$added = [];
3333

3434
foreach ($translationKeys as $key) {
3535
if (!isset($translationData[$key])) {
36-
$this->warn(" - Added {$key}");
36+
$this->warn(" - Added: {$key}");
3737
$translationData[$key] = '';
3838
$added[] = $key;
3939
}
4040
}
4141

4242
if ($added) {
4343
$this->line("Updating translation file...");
44+
4445
$this->writeNewTranslationFile($file, $translationData);
45-
$this->info("Done!");
46+
47+
$this->info("Translation file have been updated!");
4648
} else {
4749
$this->warn("Nothing new found for this language.");
4850
}
51+
4952
$this->line("");
5053
}
5154
}

0 commit comments

Comments
 (0)