We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac6346 commit 93dfa12Copy full SHA for 93dfa12
locales.js
@@ -49,7 +49,15 @@ define([
49
}
50
51
return {
52
- load: function (path, callerRequire, onload) {
+ 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
+
61
var dependencies = locales.map(getDependency);
62
// Load the locale data for every requested locale, and then return it in a hash
63
require(dependencies, function () {
0 commit comments