{"action":"created","issue":{"url":"https://api.github.com/repos/LLK/scratch-gui/issues/3252","repository_url":"https://api.github.com/repos/LLK/scratch-gui","labels_url":"https://api.github.com/repos/LLK/scratch-gui/issues/3252/labels{/name}","comments_url":"https://api.github.com/repos/LLK/scratch-gui/issues/3252/comments","events_url":"https://api.github.com/repos/LLK/scratch-gui/issues/3252/events","html_url":"https://github.com/LLK/scratch-gui/issues/3252","id":364979270,"node_id":"MDU6SXNzdWUzNjQ5NzkyNzA=","number":3252,"title":"Make preview modal tooltips translatable by translators","user":{"login":"chrisgarrity","id":399209,"node_id":"MDQ6VXNlcjM5OTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/399209?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisgarrity","html_url":"https://github.com/chrisgarrity","followers_url":"https://api.github.com/users/chrisgarrity/followers","following_url":"https://api.github.com/users/chrisgarrity/following{/other_user}","gists_url":"https://api.github.com/users/chrisgarrity/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisgarrity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisgarrity/subscriptions","organizations_url":"https://api.github.com/users/chrisgarrity/orgs","repos_url":"https://api.github.com/users/chrisgarrity/repos","events_url":"https://api.github.com/users/chrisgarrity/events{/privacy}","received_events_url":"https://api.github.com/users/chrisgarrity/received_events","type":"User","site_admin":false},"labels":[{"id":719006607,"node_id":"MDU6TGFiZWw3MTkwMDY2MDc=","url":"https://api.github.com/repos/LLK/scratch-gui/labels/help%20wanted","name":"help wanted","color":"fbca04","default":true},{"id":636196735,"node_id":"MDU6TGFiZWw2MzYxOTY3MzU=","url":"https://api.github.com/repos/LLK/scratch-gui/labels/localization","name":"localization","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T17:36:27Z","updated_at":"2018-09-29T04:34:37Z","closed_at":null,"author_association":"MEMBER","body":"Unfortunately the babel tool that automatically extracts localization messages only recognizes `defineMessages(...)` and `<FormattedMessage ... />`\r\n\r\nUses of `intl.formatMessage(...)` won't throw an error, but the string definition will not get extracted by the tool and therefore will not be available to be translated. For example:\r\nhttps://github.com/LLK/scratch-gui/blob/2753c00a14e998fe30e2b0f2caa2568f64c8fc96/src/components/preview-modal/preview-modal.jsx#L55-L59\r\n\r\nInstead we should move the message definition into a `defineMessages` call, and then call `intl.formatMessage` with the data from the messages object. \r\n"},"comment":{"url":"https://api.github.com/repos/LLK/scratch-gui/issues/comments/425615212","html_url":"https://github.com/LLK/scratch-gui/issues/3252#issuecomment-425615212","issue_url":"https://api.github.com/repos/LLK/scratch-gui/issues/3252","id":425615212,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTYxNTIxMg==","user":{"login":"apple502j","id":33279053,"node_id":"MDQ6VXNlcjMzMjc5MDUz","avatar_url":"https://avatars1.githubusercontent.com/u/33279053?v=4","gravatar_id":"","url":"https://api.github.com/users/apple502j","html_url":"https://github.com/apple502j","followers_url":"https://api.github.com/users/apple502j/followers","following_url":"https://api.github.com/users/apple502j/following{/other_user}","gists_url":"https://api.github.com/users/apple502j/gists{/gist_id}","starred_url":"https://api.github.com/users/apple502j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple502j/subscriptions","organizations_url":"https://api.github.com/users/apple502j/orgs","repos_url":"https://api.github.com/users/apple502j/repos","events_url":"https://api.github.com/users/apple502j/events{/privacy}","received_events_url":"https://api.github.com/users/apple502j/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T04:34:37Z","updated_at":"2018-09-29T04:34:37Z","author_association":"CONTRIBUTOR","body":"I do!"}}
{"actor":{"display_login":"apple502j"}}