Makes importl10n and server async gulp functions.

This commit is contained in:
Yury Delendik 2016-04-22 17:23:25 -05:00
parent 3d49879211
commit 76aa687548
2 changed files with 7 additions and 4 deletions

View file

@ -82,10 +82,13 @@ function downloadLanguageFiles(root, langCode, callback) {
});
}
function downloadL10n(root) {
function downloadL10n(root, callback) {
var i = 0;
(function next() {
if (i >= langCodes.length) {
if (callback) {
callback();
}
return;
}
downloadLanguageFiles(root, langCodes[i++], next);