Skip to content

Commit

Permalink
Allo any file in the /languages folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed May 5, 2022
1 parent 6caeffe commit 88003d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Task/CopyDevPaths.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,7 @@ private function pathInfoForKey(string $key): array
case Config::DEV_PATHS_LANGUAGES_DIR_KEY:
$what = 'Languages';
$target = $this->directories->languagesDir();
$finder and $finder->files()->ignoreDotFiles(true)->filter(
static function (SplFileInfo $info): bool {
return in_array(strtolower($info->getExtension()), ['po', 'mo'], true);
}
);
$finder and $finder->files()->ignoreDotFiles(true);
break;
case Config::DEV_PATHS_IMAGES_DIR_KEY:
$what = 'Images';
Expand Down

0 comments on commit 88003d8

Please sign in to comment.