{"action":"created","issue":{"url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/4","repository_url":"https://api.github.com/repos/tryggvigy/pseudo-localization","labels_url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/4/comments","events_url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/4/events","html_url":"https://github.com/tryggvigy/pseudo-localization/pull/4","id":353381426,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNDQ4NDA0","number":4,"title":"Extract localize function","user":{"login":"azz","id":1297597,"node_id":"MDQ6VXNlcjEyOTc1OTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1297597?v=4","gravatar_id":"","url":"https://api.github.com/users/azz","html_url":"https://github.com/azz","followers_url":"https://api.github.com/users/azz/followers","following_url":"https://api.github.com/users/azz/following{/other_user}","gists_url":"https://api.github.com/users/azz/gists{/gist_id}","starred_url":"https://api.github.com/users/azz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azz/subscriptions","organizations_url":"https://api.github.com/users/azz/orgs","repos_url":"https://api.github.com/users/azz/repos","events_url":"https://api.github.com/users/azz/events{/privacy}","received_events_url":"https://api.github.com/users/azz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-23T13:29:00Z","updated_at":"2018-08-25T09:36:25Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/tryggvigy/pseudo-localization/pulls/4","html_url":"https://github.com/tryggvigy/pseudo-localization/pull/4","diff_url":"https://github.com/tryggvigy/pseudo-localization/pull/4.diff","patch_url":"https://github.com/tryggvigy/pseudo-localization/pull/4.patch"},"body":"I split it into two files so the `localize` function will be loadable in Node.js environments which don't have `MutationObserver`.\r\n\r\n```js\r\nimport { localize } from 'pseudo-localization';\r\n// OR\r\nimport localize from 'pseudo-localization/localize';\r\n\r\nconsole.log(localize('hello')); // --> ħḗḗŀŀǿǿ\r\nconsole.log(localize('hello', { strategy: 'bidi' })); // --> ɥǝʅʅo‬\r\n```\r\n\r\nI noticed there's a copy of the script in the `hamlet.html` file, I didn't update that. I could change it to pull from [`unpkg`](https://unpkg.com/pseudo-localization) and set up a Rollup UMD bundle if you'd like?\r\n\r\nCloses #3 "},"comment":{"url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/comments/415956802","html_url":"https://github.com/tryggvigy/pseudo-localization/pull/4#issuecomment-415956802","issue_url":"https://api.github.com/repos/tryggvigy/pseudo-localization/issues/4","id":415956802,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTk1NjgwMg==","user":{"login":"tryggvigy","id":2373958,"node_id":"MDQ6VXNlcjIzNzM5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/2373958?v=4","gravatar_id":"","url":"https://api.github.com/users/tryggvigy","html_url":"https://github.com/tryggvigy","followers_url":"https://api.github.com/users/tryggvigy/followers","following_url":"https://api.github.com/users/tryggvigy/following{/other_user}","gists_url":"https://api.github.com/users/tryggvigy/gists{/gist_id}","starred_url":"https://api.github.com/users/tryggvigy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tryggvigy/subscriptions","organizations_url":"https://api.github.com/users/tryggvigy/orgs","repos_url":"https://api.github.com/users/tryggvigy/repos","events_url":"https://api.github.com/users/tryggvigy/events{/privacy}","received_events_url":"https://api.github.com/users/tryggvigy/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T09:36:25Z","updated_at":"2018-08-25T09:36:25Z","author_association":"OWNER","body":"LGTM! I'll bump the version in package.json and publish."}}
{"actor":{"display_login":"tryggvigy"}}