{"action":"created","issue":{"url":"https://api.github.com/repos/moment/moment/issues/3025","repository_url":"https://api.github.com/repos/moment/moment","labels_url":"https://api.github.com/repos/moment/moment/issues/3025/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment/issues/3025/comments","events_url":"https://api.github.com/repos/moment/moment/issues/3025/events","html_url":"https://github.com/moment/moment/issues/3025","id":139583893,"number":3025,"title":"Serialize locale data","user":{"login":"suprMax","id":789031,"avatar_url":"https://avatars.githubusercontent.com/u/789031?v=3","gravatar_id":"","url":"https://api.github.com/users/suprMax","html_url":"https://github.com/suprMax","followers_url":"https://api.github.com/users/suprMax/followers","following_url":"https://api.github.com/users/suprMax/following{/other_user}","gists_url":"https://api.github.com/users/suprMax/gists{/gist_id}","starred_url":"https://api.github.com/users/suprMax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suprMax/subscriptions","organizations_url":"https://api.github.com/users/suprMax/orgs","repos_url":"https://api.github.com/users/suprMax/repos","events_url":"https://api.github.com/users/suprMax/events{/privacy}","received_events_url":"https://api.github.com/users/suprMax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moment/moment/labels/Enhancement","name":"Enhancement","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-09T13:56:55Z","updated_at":"2016-03-13T20:44:42Z","closed_at":null,"body":"I'm trying to have language bundles that have all application language strings as JSON, along with modules language strings too.\r\n\r\nCurrently I have to load all moment locales upfront, in browserify it looks like a bunch of `require('moment/locale/xx')` calls.\r\n\r\nLooks like these modules return an empty object. Would be totally awesome if they returned locale data that I could somehow serialize and include in my JSON (or JSON-like https://github.com/yahoo/serialize-javascript) bundles and then load on demand when locale changes. Is there a way to somehow extract this data from moment instance perhaps?"},"comment":{"url":"https://api.github.com/repos/moment/moment/issues/comments/196049534","html_url":"https://github.com/moment/moment/issues/3025#issuecomment-196049534","issue_url":"https://api.github.com/repos/moment/moment/issues/3025","id":196049534,"user":{"login":"mj1856","id":1396388,"avatar_url":"https://avatars.githubusercontent.com/u/1396388?v=3","gravatar_id":"","url":"https://api.github.com/users/mj1856","html_url":"https://github.com/mj1856","followers_url":"https://api.github.com/users/mj1856/followers","following_url":"https://api.github.com/users/mj1856/following{/other_user}","gists_url":"https://api.github.com/users/mj1856/gists{/gist_id}","starred_url":"https://api.github.com/users/mj1856/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mj1856/subscriptions","organizations_url":"https://api.github.com/users/mj1856/orgs","repos_url":"https://api.github.com/users/mj1856/repos","events_url":"https://api.github.com/users/mj1856/events{/privacy}","received_events_url":"https://api.github.com/users/mj1856/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T20:44:42Z","updated_at":"2016-03-13T20:44:42Z","body":"`moment.localeData(localeCode)` will give you back most of what you're looking for."}}