{"action":"created","issue":{"url":"https://api.github.com/repos/globalizejs/globalize/issues/652","repository_url":"https://api.github.com/repos/globalizejs/globalize","labels_url":"https://api.github.com/repos/globalizejs/globalize/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/globalizejs/globalize/issues/652/comments","events_url":"https://api.github.com/repos/globalizejs/globalize/issues/652/events","html_url":"https://github.com/globalizejs/globalize/issues/652","id":190415509,"number":652,"title":"Compile hundreds of plain text messages","user":{"login":"PavelPZ","id":2981508,"avatar_url":"https://avatars.githubusercontent.com/u/2981508?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPZ","html_url":"https://github.com/PavelPZ","followers_url":"https://api.github.com/users/PavelPZ/followers","following_url":"https://api.github.com/users/PavelPZ/following{/other_user}","gists_url":"https://api.github.com/users/PavelPZ/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPZ/subscriptions","organizations_url":"https://api.github.com/users/PavelPZ/orgs","repos_url":"https://api.github.com/users/PavelPZ/repos","events_url":"https://api.github.com/users/PavelPZ/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T20:34:18Z","updated_at":"2016-11-18T21:24:23Z","closed_at":null,"body":"For my web site I want to take advantage of compiling my formatters and messages. My web site contains:\r\n- 6 different formaters (e.g. `dateFormatter({ date: \"long\" }`, `numberFormatter({ style: 'decimal', minimumFractionDigits: 0, maximumFractionDigits: 2 }` etc.)\r\n- 10 complicated messages with plural and gender\r\n- more than 200 plain text messages\r\n\r\nSorry for this stupid question: **What is the strategy for design time compilation of such app?** \r\n \r\nEvery compiled plain text messages produced complicated JS code, e.g.\r\n    `Globalize.b1130668030 = messageFormatterFn((function(  ) {  return function (d) { return \"My plain text message 1\"; }})(), Globalize(\"en\").pluralGenerator({}));`\r\n\r\nPlain text message compilation cancels positive effect of 6 formatters and 10 messages compilation.\r\n"},"comment":{"url":"https://api.github.com/repos/globalizejs/globalize/issues/comments/261645586","html_url":"https://github.com/globalizejs/globalize/issues/652#issuecomment-261645586","issue_url":"https://api.github.com/repos/globalizejs/globalize/issues/652","id":261645586,"user":{"login":"PavelPZ","id":2981508,"avatar_url":"https://avatars.githubusercontent.com/u/2981508?v=3","gravatar_id":"","url":"https://api.github.com/users/PavelPZ","html_url":"https://github.com/PavelPZ","followers_url":"https://api.github.com/users/PavelPZ/followers","following_url":"https://api.github.com/users/PavelPZ/following{/other_user}","gists_url":"https://api.github.com/users/PavelPZ/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPZ/subscriptions","organizations_url":"https://api.github.com/users/PavelPZ/orgs","repos_url":"https://api.github.com/users/PavelPZ/repos","events_url":"https://api.github.com/users/PavelPZ/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPZ/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T21:24:23Z","updated_at":"2016-11-18T21:24:23Z","body":"Exactly (and sorry for my bad English).\r\nI like design time compilation but cannot find feasible solution for my case. Large web sites could contain thousands of messages, only few of them needs compilation (due to plural etc.)\r\n"}}
{"actor":{"display_login":"PavelPZ"}}