diff --git a/src/commands/TranslateFilesCommand.php b/src/commands/TranslateFilesCommand.php index 53962f8..b896d2f 100644 --- a/src/commands/TranslateFilesCommand.php +++ b/src/commands/TranslateFilesCommand.php @@ -44,9 +44,7 @@ public function __construct() } /** - * Translate from base language to other available languages - * - * @return mixed + * @throws \Exception */ public function handle() { @@ -124,7 +122,7 @@ private function translate_php_array_files($locale) foreach ($files as $file) { $file = substr($file, 0, -4); $already_translateds = []; - if (file_exists(resource_path('lang/' . $locale . '/' . $file . '.php'))) { //&& !$this->option('force') + if (file_exists(resource_path('lang/' . $locale . '/' . $file . '.php'))) { $this->line('File already exists: lang/' . $locale . '/' . $file . '.php. Checking missing translations'); $already_translateds = trans($file, [], $locale); }