Added replacement for name of Portuguese langpack (#16361)

* added replacement for name of Portuguese langpack

* use toLowerCase instead
This commit is contained in:
Alex Ma
2021-07-20 12:44:42 -07:00
committed by GitHub
parent 88fd0cae3b
commit d663ec6129
2 changed files with 2 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ function refreshLangpacks() {
}
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
//processing extension fields, version and folder name must be changed manually.
packageJSON['name'] = packageJSON['name'].replace('vscode', textFields.nameText);
packageJSON['name'] = packageJSON['name'].replace('vscode', textFields.nameText).toLowerCase();
packageJSON['displayName'] = packageJSON['displayName'].replace('Visual Studio Code', textFields.displayNameText);
packageJSON['publisher'] = textFields.publisherText;
packageJSON['license'] = textFields.licenseText;

View File

@@ -256,7 +256,7 @@ export function refreshLangpacks(): Promise<void> {
}
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
//processing extension fields, version and folder name must be changed manually.
packageJSON['name'] = packageJSON['name'].replace('vscode', textFields.nameText);
packageJSON['name'] = packageJSON['name'].replace('vscode', textFields.nameText).toLowerCase();
packageJSON['displayName'] = packageJSON['displayName'].replace('Visual Studio Code', textFields.displayNameText);
packageJSON['publisher'] = textFields.publisherText;
packageJSON['license'] = textFields.licenseText;