{"action":"created","issue":{"url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/6","labels_url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/6/comments","events_url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/6/events","html_url":"https://github.com/michaelwittig/node-i18n-iso-countries/pull/6","id":59093954,"number":6,"title":"Make i18n compatible with browserify","user":{"login":"philippotto","id":2486553,"avatar_url":"https://avatars.githubusercontent.com/u/2486553?v=3","gravatar_id":"","url":"https://api.github.com/users/philippotto","html_url":"https://github.com/philippotto","followers_url":"https://api.github.com/users/philippotto/followers","following_url":"https://api.github.com/users/philippotto/following{/other_user}","gists_url":"https://api.github.com/users/philippotto/gists{/gist_id}","starred_url":"https://api.github.com/users/philippotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippotto/subscriptions","organizations_url":"https://api.github.com/users/philippotto/orgs","repos_url":"https://api.github.com/users/philippotto/repos","events_url":"https://api.github.com/users/philippotto/events{/privacy}","received_events_url":"https://api.github.com/users/philippotto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T16:04:38Z","updated_at":"2015-02-28T18:10:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/pulls/6","html_url":"https://github.com/michaelwittig/node-i18n-iso-countries/pull/6","diff_url":"https://github.com/michaelwittig/node-i18n-iso-countries/pull/6.diff","patch_url":"https://github.com/michaelwittig/node-i18n-iso-countries/pull/6.patch"},"body":"I wanted to use this package in a front-end-environment and bundled it up using browserify. Unfortunately, the package relies on readFileSync and lazy-requiring the lang files. I changed both so that it works in the browser, now.\r\n\r\nI can understand if you don't want to merge this, since it requires hardcoding the existence of the different language files, but for the case that somebody else needs this, he might find this PR ;)"},"comment":{"url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/comments/76537859","html_url":"https://github.com/michaelwittig/node-i18n-iso-countries/pull/6#issuecomment-76537859","issue_url":"https://api.github.com/repos/michaelwittig/node-i18n-iso-countries/issues/6","id":76537859,"user":{"login":"philippotto","id":2486553,"avatar_url":"https://avatars.githubusercontent.com/u/2486553?v=3","gravatar_id":"","url":"https://api.github.com/users/philippotto","html_url":"https://github.com/philippotto","followers_url":"https://api.github.com/users/philippotto/followers","following_url":"https://api.github.com/users/philippotto/following{/other_user}","gists_url":"https://api.github.com/users/philippotto/gists{/gist_id}","starred_url":"https://api.github.com/users/philippotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippotto/subscriptions","organizations_url":"https://api.github.com/users/philippotto/orgs","repos_url":"https://api.github.com/users/philippotto/repos","events_url":"https://api.github.com/users/philippotto/events{/privacy}","received_events_url":"https://api.github.com/users/philippotto/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T18:10:55Z","updated_at":"2015-02-28T18:10:55Z","body":"Hi @michaelwittig, sorry, I didn't notice that there were tests failing. I just fixed them and squashed the amending commit."}}