mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Added replacement for name of Portuguese langpack (#16361)
* added replacement for name of Portuguese langpack * use toLowerCase instead
This commit is contained in:
@@ -238,7 +238,7 @@ function refreshLangpacks() {
|
|||||||
}
|
}
|
||||||
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
|
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
|
||||||
//processing extension fields, version and folder name must be changed manually.
|
//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['displayName'] = packageJSON['displayName'].replace('Visual Studio Code', textFields.displayNameText);
|
||||||
packageJSON['publisher'] = textFields.publisherText;
|
packageJSON['publisher'] = textFields.publisherText;
|
||||||
packageJSON['license'] = textFields.licenseText;
|
packageJSON['license'] = textFields.licenseText;
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ export function refreshLangpacks(): Promise<void> {
|
|||||||
}
|
}
|
||||||
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
|
let packageJSON = JSON.parse(fs.readFileSync(path.join(locExtFolder, 'package.json')).toString());
|
||||||
//processing extension fields, version and folder name must be changed manually.
|
//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['displayName'] = packageJSON['displayName'].replace('Visual Studio Code', textFields.displayNameText);
|
||||||
packageJSON['publisher'] = textFields.publisherText;
|
packageJSON['publisher'] = textFields.publisherText;
|
||||||
packageJSON['license'] = textFields.licenseText;
|
packageJSON['license'] = textFields.licenseText;
|
||||||
|
|||||||
Reference in New Issue
Block a user