Skip to content

Commit

Permalink
Only list each locale once (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan authored and Olympic1 committed Jun 15, 2019
1 parent e8f510d commit e21f8c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Netkan/Transformers/LocalizationsTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public IEnumerable<Metadata> Transform(Metadata metadata)
.SelectMany(contents => localizationRegex.Matches(contents).Cast<Match>()
.Select(m => m.Groups["contents"].Value))
.SelectMany(contents => localeRegex.Matches(contents).Cast<Match>()
.Select(m => m.Groups["locale"].Value));
.Select(m => m.Groups["locale"].Value))
.Distinct();
log.Debug("Locales extracted");

if (locales.Any())
Expand Down

0 comments on commit e21f8c1

Please sign in to comment.