Makes importl10n and server async gulp functions.
This commit is contained in:
parent
3d49879211
commit
76aa687548
2 changed files with 7 additions and 4 deletions
5
external/importL10n/locales.js
vendored
5
external/importL10n/locales.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue