Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin committed Mar 28, 2019
1 parent c1fd7f1 commit 653f7db
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 @@ -122,12 +122,12 @@ private function translate_php_array_files($locale)
$files = $this->target_files;
}
foreach ($files as $file) {
$file = substr($file, 0, -4);
$already_translateds = [];
if (file_exists(resource_path('lang/' . $locale . '/' . $file . '.php'))) { //&& !$this->option('force')
$this->line('File already exists: lang/' . $locale . '/' . $file . '.php. Checking missing translations');
$already_translateds = trans($file, [], $locale);
}
$file = substr($file, 0, -4);
if (in_array($file, $this->excluded_files)) {
continue;
}
Expand Down

0 comments on commit 653f7db

Please sign in to comment.