{"action":"created","issue":{"url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/927","labels_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/927/labels{/name}","comments_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/927/comments","events_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/927/events","html_url":"https://github.com/dangrossman/bootstrap-daterangepicker/issues/927","id":126454011,"number":927,"title":"Global MomentJS locale setting gets overwritten when using daterangepicker as a module","user":{"login":"jplaza","id":1086705,"avatar_url":"https://avatars.githubusercontent.com/u/1086705?v=3","gravatar_id":"","url":"https://api.github.com/users/jplaza","html_url":"https://github.com/jplaza","followers_url":"https://api.github.com/users/jplaza/followers","following_url":"https://api.github.com/users/jplaza/following{/other_user}","gists_url":"https://api.github.com/users/jplaza/gists{/gist_id}","starred_url":"https://api.github.com/users/jplaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jplaza/subscriptions","organizations_url":"https://api.github.com/users/jplaza/orgs","repos_url":"https://api.github.com/users/jplaza/repos","events_url":"https://api.github.com/users/jplaza/events{/privacy}","received_events_url":"https://api.github.com/users/jplaza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-13T16:13:51Z","updated_at":"2016-01-19T16:17:18Z","closed_at":"2016-01-13T17:21:33Z","body":"If I set my locale after momentjs is loaded, it displays the correct month and day names, like this\r\n\r\n```js\r\nif (typeof define === 'function' && define.amd) {\r\n    define(['moment', 'jquery', 'exports'], function(momentjs, $, exports) {\r\n      root.daterangepicker = factory(root, exports, momentjs, $);\r\n    });\r\n\r\n  } else if (typeof exports !== 'undefined') {\r\n      var momentjs = require('moment');\r\n      require('moment/locale/es');\r\n      moment.localeData('es')\r\n      var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;  //isomorphic issue\r\n      if (!jQuery) {\r\n          try {\r\n              jQuery = require('jquery');\r\n              if (!jQuery.fn) jQuery.fn = {}; //isomorphic issue\r\n          } catch (err) {\r\n              if (!jQuery) throw new Error('jQuery dependency not found');\r\n          }\r\n      }\r\n\r\n    factory(root, exports, momentjs, jQuery);\r\n\r\n  // Finally, as a browser global.\r\n  } else {\r\n    root.daterangepicker = factory(root, {}, root.moment || moment, (root.jQuery || root.Zepto || root.ender || root.$));\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/comments/172903786","html_url":"https://github.com/dangrossman/bootstrap-daterangepicker/issues/927#issuecomment-172903786","issue_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/927","id":172903786,"user":{"login":"dangrossman","id":407706,"avatar_url":"https://avatars.githubusercontent.com/u/407706?v=3","gravatar_id":"","url":"https://api.github.com/users/dangrossman","html_url":"https://github.com/dangrossman","followers_url":"https://api.github.com/users/dangrossman/followers","following_url":"https://api.github.com/users/dangrossman/following{/other_user}","gists_url":"https://api.github.com/users/dangrossman/gists{/gist_id}","starred_url":"https://api.github.com/users/dangrossman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangrossman/subscriptions","organizations_url":"https://api.github.com/users/dangrossman/orgs","repos_url":"https://api.github.com/users/dangrossman/repos","events_url":"https://api.github.com/users/dangrossman/events{/privacy}","received_events_url":"https://api.github.com/users/dangrossman/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T16:17:18Z","updated_at":"2016-01-19T16:17:18Z","body":"Yes please :)"}}