Skip to content

Commit

Permalink
Sort translation files by name to ensure same order on all systems
Browse files Browse the repository at this point in the history
Closes: #171.
  • Loading branch information
l3ku authored and Leo Toikka committed Jul 19, 2019
1 parent 09c32cd commit 2ebbcca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/IterableCodeExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public static function fromDirectory( $dir, Translations $translations, array $o
$files = static::getFilesFromDirectory( $dir, $include, $exclude, $options['extensions'] );

if ( ! empty( $files ) ) {
sort( $files );
static::fromFile( $files, $translations, $options );
}

Expand Down

0 comments on commit 2ebbcca

Please sign in to comment.