{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/31","labels_url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/31/comments","events_url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/31/events","html_url":"https://github.com/dockyard/ember-cli-i18n/issues/31","id":51824905,"number":31,"title":"Improve testing expeirence","user":{"login":"raytiley","id":41680,"avatar_url":"https://avatars.githubusercontent.com/u/41680?v=3","gravatar_id":"","url":"https://api.github.com/users/raytiley","html_url":"https://github.com/raytiley","followers_url":"https://api.github.com/users/raytiley/followers","following_url":"https://api.github.com/users/raytiley/following{/other_user}","gists_url":"https://api.github.com/users/raytiley/gists{/gist_id}","starred_url":"https://api.github.com/users/raytiley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raytiley/subscriptions","organizations_url":"https://api.github.com/users/raytiley/orgs","repos_url":"https://api.github.com/users/raytiley/repos","events_url":"https://api.github.com/users/raytiley/events{/privacy}","received_events_url":"https://api.github.com/users/raytiley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-12T16:31:38Z","updated_at":"2015-01-27T20:45:49Z","closed_at":null,"body":"Just writing this out, maybe I can help come up with a solution later. Basically the testing experience is a bit frustrating.\r\n\r\n- In unit tests the `initializers` don't run so  the custom registered helper for `{{ t }}` is not available\r\n- When running in unit tests there is no `application` so the `{{ t }}` helper fails to find `defaultLocale`\r\n- The last part I'm stuck on, but seems pretty much the same as above, the locales themselves don't get registered, so non of the translations are available\r\n\r\nWould be nice if there was a `setupi18n` helper or something similar so that users of this library didn't have to dive into the internals to figure out why unit tests that use the {{ t }} helper break\r\n\r\nI'll try to circle back around to this if I have time.\r\n\r\nThanks @bcardarella for helping me figure out some of these issues."},"comment":{"url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/comments/71724384","html_url":"https://github.com/dockyard/ember-cli-i18n/issues/31#issuecomment-71724384","issue_url":"https://api.github.com/repos/dockyard/ember-cli-i18n/issues/31","id":71724384,"user":{"login":"dlangevin","id":58295,"avatar_url":"https://avatars.githubusercontent.com/u/58295?v=3","gravatar_id":"","url":"https://api.github.com/users/dlangevin","html_url":"https://github.com/dlangevin","followers_url":"https://api.github.com/users/dlangevin/followers","following_url":"https://api.github.com/users/dlangevin/following{/other_user}","gists_url":"https://api.github.com/users/dlangevin/gists{/gist_id}","starred_url":"https://api.github.com/users/dlangevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlangevin/subscriptions","organizations_url":"https://api.github.com/users/dlangevin/orgs","repos_url":"https://api.github.com/users/dlangevin/repos","events_url":"https://api.github.com/users/dlangevin/events{/privacy}","received_events_url":"https://api.github.com/users/dlangevin/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T20:45:49Z","updated_at":"2015-01-27T20:45:49Z","body":"@themouette we have a fork that is largely up-to-date, but keeps the localeStream on the container rather than the application (which solves your problem).  http://github.com/vericred/ember-cli-i18n - I proposed this as a PR but it turned out that putting this property on the container is not the preferred way to do it, so I have just been holding onto it til someone proposes a better solution or I have time to get back to it myself"}}