Skip to content

Commit

Permalink
files sort fix (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
MagTuxGit committed Oct 13, 2022
1 parent 0b5f89a commit 7f14668
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core_18n.dart
Expand Up @@ -31,6 +31,7 @@ void handleGenerateI18nFiles(I18nOption option) async {

List<FileSystemEntity> files =
await dirContents(Directory(path.join(current.path, option.sourceDir)));
files.sort((a, b) => a.path.compareTo(b.path));
Map<String, FileSystemEntity> validFilesMap = getValidStringFileMap(files);
FileSystemEntity defaultTemplateLang =
getDefaultTemplateLang(validFilesMap, option.templateLocale);
Expand Down

0 comments on commit 7f14668

Please sign in to comment.