Skip to content

Commit 93dfa12

Browse files
clmathJCEmmons
authored andcommitted
default config for locales to build is now all the available locales
Fixes #62
1 parent cac6346 commit 93dfa12

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

locales.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ define([
4949
}
5050

5151
return {
52-
load: function (path, callerRequire, onload) {
52+
load: function (path, callerRequire, onload, loaderConfig) {
53+
if (config instanceof Object && loaderConfig.isBuild) {
54+
localeHash = {};
55+
common.availableLocalesList.forEach(function (locale) {
56+
localeHash[locale] = true;
57+
});
58+
locales = Object.keys(localeHash);
59+
}
60+
5361
var dependencies = locales.map(getDependency);
5462
// Load the locale data for every requested locale, and then return it in a hash
5563
require(dependencies, function () {

0 commit comments

Comments
 (0)