Fixed adding languages only to non-stable build.

This commit is contained in:
Michel Kaporin
2017-06-01 15:13:31 +02:00
parent 724f31f5bc
commit 45e33456d6
3 changed files with 3 additions and 3 deletions

View File

@@ -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()));