Fixed adding languages only to non-stable build.
This commit is contained in:
parent
724f31f5bc
commit
45e33456d6
3 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ const BUNDLED_FILE_HEADER = [
|
|||
].join('\n');
|
||||
|
||||
var languages = ['chs', 'cht', 'jpn', 'kor', 'deu', 'fra', 'esn', 'rus', 'ita'];
|
||||
if (product.quality !== 'stable') {
|
||||
if (process.env.VSCODE_QUALITY !== 'stable') {
|
||||
languages = languages.concat(['ptb']); // Add languages requested by the community to non-stable builds
|
||||
}
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ function processCoreBundleFormat(fileHeader, languages, json, emitter) {
|
|||
});
|
||||
var languageDirectory = path.join(__dirname, '..', '..', 'i18n');
|
||||
var languageDirs;
|
||||
if (languageDirs) {
|
||||
if (languages) {
|
||||
languageDirs = sortLanguages(languages);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -439,7 +439,7 @@ function processCoreBundleFormat(fileHeader: string, languages: string[], json:
|
|||
|
||||
let languageDirectory = path.join(__dirname, '..', '..', 'i18n');
|
||||
let languageDirs;
|
||||
if (languageDirs) {
|
||||
if (languages) {
|
||||
languageDirs = sortLanguages(languages);
|
||||
} else {
|
||||
languageDirs = sortLanguages(fs.readdirSync(languageDirectory).filter((item) => fs.statSync(path.join(languageDirectory, item)).isDirectory()));
|
||||
|
|
Loading…
Reference in a new issue