Skip to content

Commit

Permalink
Update TranslateFilesCommand.php (#37)
Browse files Browse the repository at this point in the history
Fix problem with duplicated php file extension (e.g. country.php.php)
  • Loading branch information
kaziu687 authored Sep 30, 2020
1 parent 4d6130c commit 2f2d97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/TranslateFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function handle()
$file_translator = new PhpArrayFileTranslator($this->base_locale, $this->verbose, $this->force);
$this->target_files = array_filter(explode(",", $this->ask('Are there specific target files to translate only? ex: file1,file2', '')));
foreach ($this->target_files as $key => $target_file) {
$this->target_files[$key] = $target_file . '.php';
$this->target_files[$key] = $target_file;
}
$file_translator->setTargetFiles($this->target_files);
$this->excluded_files = array_filter(explode(",", $this->ask('Are there specific files to exclude?', 'auth,pagination,validation,passwords')));
Expand Down

0 comments on commit 2f2d97b

Please sign in to comment.