Skip to content

Commit d153f70

Browse files
committed
Fix bug when building root bundles specifying false locales
1 parent 43deaa3 commit d153f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i18n/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define(["./common", "require"], function (common, requirejs) {
2222
var root = requirejs(getMasterMid(name));
2323

2424
eachProp(root, function (loc) {
25-
if (localesList.indexOf(loc) < 0) {
25+
if (root.loc && localesList.indexOf(loc) < 0) {
2626
localesList.push(loc);
2727
}
2828
});

0 commit comments

Comments
 (0)