{"action":"opened","issue":{"url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/79","repository_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl","labels_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/79/comments","events_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/79/events","html_url":"https://github.com/yahoo/babel-plugin-react-intl/issues/79","id":181420233,"number":79,"title":"Empty messages array","user":{"login":"7rulnik","id":5969049,"avatar_url":"https://avatars.githubusercontent.com/u/5969049?v=3","gravatar_id":"","url":"https://api.github.com/users/7rulnik","html_url":"https://github.com/7rulnik","followers_url":"https://api.github.com/users/7rulnik/followers","following_url":"https://api.github.com/users/7rulnik/following{/other_user}","gists_url":"https://api.github.com/users/7rulnik/gists{/gist_id}","starred_url":"https://api.github.com/users/7rulnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7rulnik/subscriptions","organizations_url":"https://api.github.com/users/7rulnik/orgs","repos_url":"https://api.github.com/users/7rulnik/repos","events_url":"https://api.github.com/users/7rulnik/events{/privacy}","received_events_url":"https://api.github.com/users/7rulnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T13:49:55Z","updated_at":"2016-10-06T13:49:55Z","closed_at":null,"body":"Hi! I trying use it via Node API like in [this example](https://github.com/yahoo/babel-plugin-react-intl/issues/15). But metadata always empty.\r\n\r\n`{ messages: [] }` \r\n\r\nCode from Babel:\r\n```\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n    value: true\r\n});\r\n\r\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\r\n\r\nvar _react = require('react');\r\n\r\nvar _react2 = _interopRequireDefault(_react);\r\n\r\nvar _reactIntl = require('react-intl');\r\n\r\nvar _localesMenu = require('./locales-menu');\r\n\r\nvar _localesMenu2 = _interopRequireDefault(_localesMenu);\r\n\r\nvar _greeting = require('./greeting');\r\n\r\nvar _greeting2 = _interopRequireDefault(_greeting);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\r\n\r\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\r\n\r\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\r\n\r\nvar App = function (_Component) {\r\n    _inherits(App, _Component);\r\n\r\n    function App(props) {\r\n        _classCallCheck(this, App);\r\n\r\n        var _this = _possibleConstructorReturn(this, (App.__proto__ || Object.getPrototypeOf(App)).call(this, props));\r\n\r\n        _this.state = {\r\n            user: {\r\n                name: 'Eric',\r\n                unreadCount: 4,\r\n                lastLoginTime: Date.now() - 1000 * 60 * 60 * 24\r\n            }\r\n        };\r\n        return _this;\r\n    }\r\n\r\n    _createClass(App, [{\r\n        key: 'render',\r\n        value: function render() {\r\n            return _react2.default.createElement(\r\n                'div',\r\n                null,\r\n                _react2.default.createElement(\r\n                    'h1',\r\n                    null,\r\n                    _react2.default.createElement(_reactIntl.FormattedMessage, {\r\n                        id: 'app.title',\r\n                        defaultMessage: 'React Intl Translations Example'\r\n                    })\r\n                ),\r\n                _react2.default.createElement(_greeting2.default, { user: this.state.user }),\r\n                _react2.default.createElement(\r\n                    'h4',\r\n                    null,\r\n                    _react2.default.createElement(_reactIntl.FormattedMessage, {\r\n                        id: 'app.locales_menu_heading',\r\n                        defaultMessage: 'Locales:'\r\n                    })\r\n                ),\r\n                _react2.default.createElement(_localesMenu2.default, null)\r\n            );\r\n        }\r\n    }]);\r\n\r\n    return App;\r\n}(_react.Component);\r\n\r\nexports.default = App;\r\n```"}}
{"actor":{"display_login":"7rulnik"}}