From d663ec61294439214912a594210b1a90eb89369f Mon Sep 17 00:00:00 2001 From: Alex Ma Date: Tue, 20 Jul 2021 12:44:42 -0700 Subject: [PATCH] Added replacement for name of Portuguese langpack (#16361) * added replacement for name of Portuguese langpack * use toLowerCase instead --- build/lib/locFunc.js | 2 +- build/lib/locFunc.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/lib/locFunc.js b/build/lib/locFunc.js index 0dc357fd26..ac74e8bdfa 100644 --- a/build/lib/locFunc.js +++ b/build/lib/locFunc.js @@ -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; diff --git a/build/lib/locFunc.ts b/build/lib/locFunc.ts index 496a5af5ef..eceda3a844 100644 --- a/build/lib/locFunc.ts +++ b/build/lib/locFunc.ts @@ -256,7 +256,7 @@ export function refreshLangpacks(): Promise { } 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;