allow setting locale urls for locale=en
This commit is contained in:
parent
47fc01742f
commit
c61d173922
1 changed files with 8 additions and 4 deletions
|
@ -45,15 +45,19 @@
|
|||
]);
|
||||
}
|
||||
});
|
||||
url && Ox.makeArray(url).forEach(function(value) {
|
||||
urls.push(Ox.makeArray(value));
|
||||
});
|
||||
}
|
||||
url && Ox.makeArray(url).forEach(function(value) {
|
||||
urls.push(Ox.makeArray(value));
|
||||
});
|
||||
if (urls.length) {
|
||||
Ox.getJSON(urls, function(data) {
|
||||
Ox.forEach(data, function(values, url) {
|
||||
Ox.extend(translations, values);
|
||||
});
|
||||
callback(true);
|
||||
});
|
||||
})
|
||||
} else {
|
||||
callback(true);
|
||||
}
|
||||
} else {
|
||||
callback(false);
|
||||
|
|
Loading…
Reference in a new issue