Skip to content

Commit

Permalink
Inform the user of the language translated
Browse files Browse the repository at this point in the history
  • Loading branch information
q-- committed Sep 17, 2024
1 parent fc9519f commit 5afb0ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions resources/lang/en/translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'language_key_added' => 'New language key added successfully 👏',
'no_missing_keys' => 'There are no missing translation keys in the app 🎉',
'keys_synced' => 'Missing keys synchronised successfully 🎊',
'auto_translated_language' => 'Finished translating :language.',
'auto_translated' => 'Automated Translation completed successfully 🎊',
'search' => 'Search all translations',
'translations' => 'Translation',
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Commands/AutoTranslateKeysCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function handle()
} catch (\Exception $e) {
return $this->error($e->getMessage());
}


}
}
2 changes: 2 additions & 0 deletions src/Drivers/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function autoTranslate($language = false)
foreach ($languages as $language => $name) {
$this->saveMissingTranslations($language);
$this->translateLanguage($language);
//Inform the user of what language we just finished translating
fwrite(STDOUT, __('translation::translation.auto_translated_language', ['language' => $language]) . PHP_EOL);
}
}

Expand Down

0 comments on commit 5afb0ab

Please sign in to comment.