Skip to content

Commit

Permalink
Fix extensions translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Felx-B committed Nov 7, 2020
1 parent 4bdcd20 commit 91d936c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,23 @@ for (const extension of extensionsContent) {
const extensionPath = `${extensionsFolderPath}/${extension}`;
if (fs.statSync(extensionPath).isDirectory()) {
const extensionPackagePath = `${extensionPath}/package.json`;
const extensionPackageNLSPath = `${extensionPath}/package.nls.json`;

if (!fs.existsSync(extensionPackagePath)) {
continue;
}

const packageJSON = JSON.parse(fs.readFileSync(extensionPackagePath));
let packageNLS = null;

if (fs.existsSync(extensionPackageNLSPath)) {
packageNLS = JSON.parse(fs.readFileSync(extensionPackageNLSPath));
}

extensions.push({
packageJSON,
extensionPath: extension,
packageNLS
});
}
}
Expand Down

0 comments on commit 91d936c

Please sign in to comment.