{"action":"created","issue":{"url":"https://api.github.com/repos/fnando/i18n-js/issues/289","labels_url":"https://api.github.com/repos/fnando/i18n-js/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/fnando/i18n-js/issues/289/comments","events_url":"https://api.github.com/repos/fnando/i18n-js/issues/289/events","html_url":"https://github.com/fnando/i18n-js/issues/289","id":52864217,"number":289,"title":"Modular structure","user":{"login":"stgeneral","id":1227892,"avatar_url":"https://avatars.githubusercontent.com/u/1227892?v=3","gravatar_id":"","url":"https://api.github.com/users/stgeneral","html_url":"https://github.com/stgeneral","followers_url":"https://api.github.com/users/stgeneral/followers","following_url":"https://api.github.com/users/stgeneral/following{/other_user}","gists_url":"https://api.github.com/users/stgeneral/gists{/gist_id}","starred_url":"https://api.github.com/users/stgeneral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgeneral/subscriptions","organizations_url":"https://api.github.com/users/stgeneral/orgs","repos_url":"https://api.github.com/users/stgeneral/repos","events_url":"https://api.github.com/users/stgeneral/events{/privacy}","received_events_url":"https://api.github.com/users/stgeneral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-25T14:13:39Z","updated_at":"2015-01-06T11:26:27Z","closed_at":null,"body":"While i18n-js is very lightweight it would be even better to be modular.\r\n\r\nFor example there several function for date & time: `I18n.parseDate`, `I18n.strftime`, `I18n.toTime` which may be used not in every project or be replaced with some other libs (like moment.js).\r\n\r\nAs well as other functions like `I18n.toHumanSize` or `I18n.toHumanSize` may not be used in every project.\r\n\r\nSo, it would be good to have `i18n-core` in a separate file and helpers/extensions in other files in order we could include only that modules that really used in the project.\r\n\r\nThank you for the great gem!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fnando/i18n-js/issues/comments/68854588","html_url":"https://github.com/fnando/i18n-js/issues/289#issuecomment-68854588","issue_url":"https://api.github.com/repos/fnando/i18n-js/issues/289","id":68854588,"user":{"login":"johnnyshields","id":27655,"avatar_url":"https://avatars.githubusercontent.com/u/27655?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyshields","html_url":"https://github.com/johnnyshields","followers_url":"https://api.github.com/users/johnnyshields/followers","following_url":"https://api.github.com/users/johnnyshields/following{/other_user}","gists_url":"https://api.github.com/users/johnnyshields/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyshields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyshields/subscriptions","organizations_url":"https://api.github.com/users/johnnyshields/orgs","repos_url":"https://api.github.com/users/johnnyshields/repos","events_url":"https://api.github.com/users/johnnyshields/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyshields/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T11:26:27Z","updated_at":"2015-01-06T11:26:27Z","body":"One way to achieve this would be to use ECMAScript 6 modules, and then transpile-them to the built JS file. This might be overkill considering (at least in the current code) all modules would extend `I18n` in the global namespace."}}