Skip to content

Commit

Permalink
fix gather-git-history
Browse files Browse the repository at this point in the history
  • Loading branch information
escattone committed Apr 30, 2021
1 parent 0c12ac3 commit 60703cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tool/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,11 @@ program
// Someplace to put the map into an object so it can be saved into `saveHistory`
const allHistory = {};
for (const [relPath, value] of map) {
allHistory[relPath] = value;
const locale = relPath.split(path.sep)[0];
if (!VALID_LOCALES.has(locale)) {
continue;
}
allHistory[relPath] = value;
if (!historyPerLocale[locale]) {
historyPerLocale[locale] = {};
}
Expand Down

0 comments on commit 60703cf

Please sign in to comment.