Skip to content

Commit

Permalink
Fix lazy loading locales for node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Mar 25, 2015
1 parent bfa4446 commit b398e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/locale/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function loadLocale(name) {
if (!locales[name] && typeof module !== 'undefined' &&
module && module.exports) {
try {
oldLocale = moment.locale();
oldLocale = globalLocale._abbr;
require('./locale/' + name);
// because defineLocale currently also sets the global locale, we
// want to undo that for lazy loaded locales
Expand Down

0 comments on commit b398e8a

Please sign in to comment.