{"action":"created","comment":{"url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/comments/39328332","id":39328332,"diff_hunk":"@@ -14,6 +14,7 @@ export default {\n     const key = 'service:i18n';\n     const i18n = instance.lookup ? instance.lookup(key) : instance.container.lookup(key);\n     i18n.set('locale', defaultLocale);\n+    i18n.set('allowLocaleOverride', (ENV.i18n || {}).allowLocaleOverride);","path":"app/instance-initializers/ember-i18n.js","position":4,"original_position":4,"commit_id":"83e23ea5e12e3002b250ed05d3b601152fe1d660","original_commit_id":"83e23ea5e12e3002b250ed05d3b601152fe1d660","user":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"body":"I meant that in an app's unit tests, they're not going to get the same behavior that they get in an integration test. It's going to fail in a way that's hard to diagnose.","created_at":"2015-09-11T23:29:40Z","updated_at":"2015-09-11T23:29:40Z","html_url":"https://github.com/jamesarosen/ember-i18n/pull/312#discussion_r39328332","pull_request_url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/comments/39328332"},"html":{"href":"https://github.com/jamesarosen/ember-i18n/pull/312#discussion_r39328332"},"pull_request":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312","id":44827247,"html_url":"https://github.com/jamesarosen/ember-i18n/pull/312","diff_url":"https://github.com/jamesarosen/ember-i18n/pull/312.diff","patch_url":"https://github.com/jamesarosen/ember-i18n/pull/312.patch","issue_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/312","number":312,"state":"open","locked":false,"title":"Allow overriding the locale for individual translations","user":{"login":"grantovich","id":394835,"avatar_url":"https://avatars.githubusercontent.com/u/394835?v=3","gravatar_id":"","url":"https://api.github.com/users/grantovich","html_url":"https://github.com/grantovich","followers_url":"https://api.github.com/users/grantovich/followers","following_url":"https://api.github.com/users/grantovich/following{/other_user}","gists_url":"https://api.github.com/users/grantovich/gists{/gist_id}","starred_url":"https://api.github.com/users/grantovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantovich/subscriptions","organizations_url":"https://api.github.com/users/grantovich/orgs","repos_url":"https://api.github.com/users/grantovich/repos","events_url":"https://api.github.com/users/grantovich/events{/privacy}","received_events_url":"https://api.github.com/users/grantovich/received_events","type":"User","site_admin":false},"body":"I had some free time, so here is my initial stab at #298. I couldn't find a way to stub the ENV value so I could test that it's correctly loaded into the service, but I manually confirmed that it works.","created_at":"2015-09-11T20:47:16Z","updated_at":"2015-09-11T23:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7874d71c958d5f0ef80c8b0c77584580cfb01a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312/commits","review_comments_url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312/comments","review_comment_url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/312/comments","statuses_url":"https://api.github.com/repos/jamesarosen/ember-i18n/statuses/83e23ea5e12e3002b250ed05d3b601152fe1d660","head":{"label":"grantovich:locale-override","ref":"locale-override","sha":"83e23ea5e12e3002b250ed05d3b601152fe1d660","user":{"login":"grantovich","id":394835,"avatar_url":"https://avatars.githubusercontent.com/u/394835?v=3","gravatar_id":"","url":"https://api.github.com/users/grantovich","html_url":"https://github.com/grantovich","followers_url":"https://api.github.com/users/grantovich/followers","following_url":"https://api.github.com/users/grantovich/following{/other_user}","gists_url":"https://api.github.com/users/grantovich/gists{/gist_id}","starred_url":"https://api.github.com/users/grantovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantovich/subscriptions","organizations_url":"https://api.github.com/users/grantovich/orgs","repos_url":"https://api.github.com/users/grantovich/repos","events_url":"https://api.github.com/users/grantovich/events{/privacy}","received_events_url":"https://api.github.com/users/grantovich/received_events","type":"User","site_admin":false},"repo":{"id":42325584,"name":"ember-i18n","full_name":"grantovich/ember-i18n","owner":{"login":"grantovich","id":394835,"avatar_url":"https://avatars.githubusercontent.com/u/394835?v=3","gravatar_id":"","url":"https://api.github.com/users/grantovich","html_url":"https://github.com/grantovich","followers_url":"https://api.github.com/users/grantovich/followers","following_url":"https://api.github.com/users/grantovich/following{/other_user}","gists_url":"https://api.github.com/users/grantovich/gists{/gist_id}","starred_url":"https://api.github.com/users/grantovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantovich/subscriptions","organizations_url":"https://api.github.com/users/grantovich/orgs","repos_url":"https://api.github.com/users/grantovich/repos","events_url":"https://api.github.com/users/grantovich/events{/privacy}","received_events_url":"https://api.github.com/users/grantovich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grantovich/ember-i18n","description":"","fork":true,"url":"https://api.github.com/repos/grantovich/ember-i18n","forks_url":"https://api.github.com/repos/grantovich/ember-i18n/forks","keys_url":"https://api.github.com/repos/grantovich/ember-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grantovich/ember-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grantovich/ember-i18n/teams","hooks_url":"https://api.github.com/repos/grantovich/ember-i18n/hooks","issue_events_url":"https://api.github.com/repos/grantovich/ember-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/grantovich/ember-i18n/events","assignees_url":"https://api.github.com/repos/grantovich/ember-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/grantovich/ember-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/grantovich/ember-i18n/tags","blobs_url":"https://api.github.com/repos/grantovich/ember-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grantovich/ember-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grantovich/ember-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/grantovich/ember-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grantovich/ember-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/grantovich/ember-i18n/languages","stargazers_url":"https://api.github.com/repos/grantovich/ember-i18n/stargazers","contributors_url":"https://api.github.com/repos/grantovich/ember-i18n/contributors","subscribers_url":"https://api.github.com/repos/grantovich/ember-i18n/subscribers","subscription_url":"https://api.github.com/repos/grantovich/ember-i18n/subscription","commits_url":"https://api.github.com/repos/grantovich/ember-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/grantovich/ember-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/grantovich/ember-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/grantovich/ember-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/grantovich/ember-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/grantovich/ember-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grantovich/ember-i18n/merges","archive_url":"https://api.github.com/repos/grantovich/ember-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grantovich/ember-i18n/downloads","issues_url":"https://api.github.com/repos/grantovich/ember-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/grantovich/ember-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/grantovich/ember-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/grantovich/ember-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grantovich/ember-i18n/labels{/name}","releases_url":"https://api.github.com/repos/grantovich/ember-i18n/releases{/id}","created_at":"2015-09-11T18:30:59Z","updated_at":"2015-09-11T18:30:59Z","pushed_at":"2015-09-11T21:22:10Z","git_url":"git://github.com/grantovich/ember-i18n.git","ssh_url":"git@github.com:grantovich/ember-i18n.git","clone_url":"https://github.com/grantovich/ember-i18n.git","svn_url":"https://github.com/grantovich/ember-i18n","homepage":"","size":4777,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jamesarosen:master","ref":"master","sha":"74e08301e19c7302c1f91f3d6e22548b6d9baf37","user":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"repo":{"id":2476855,"name":"ember-i18n","full_name":"jamesarosen/ember-i18n","owner":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesarosen/ember-i18n","description":"","fork":false,"url":"https://api.github.com/repos/jamesarosen/ember-i18n","forks_url":"https://api.github.com/repos/jamesarosen/ember-i18n/forks","keys_url":"https://api.github.com/repos/jamesarosen/ember-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesarosen/ember-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesarosen/ember-i18n/teams","hooks_url":"https://api.github.com/repos/jamesarosen/ember-i18n/hooks","issue_events_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/jamesarosen/ember-i18n/events","assignees_url":"https://api.github.com/repos/jamesarosen/ember-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/jamesarosen/ember-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/jamesarosen/ember-i18n/tags","blobs_url":"https://api.github.com/repos/jamesarosen/ember-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesarosen/ember-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesarosen/ember-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesarosen/ember-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesarosen/ember-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesarosen/ember-i18n/languages","stargazers_url":"https://api.github.com/repos/jamesarosen/ember-i18n/stargazers","contributors_url":"https://api.github.com/repos/jamesarosen/ember-i18n/contributors","subscribers_url":"https://api.github.com/repos/jamesarosen/ember-i18n/subscribers","subscription_url":"https://api.github.com/repos/jamesarosen/ember-i18n/subscription","commits_url":"https://api.github.com/repos/jamesarosen/ember-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesarosen/ember-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesarosen/ember-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesarosen/ember-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/jamesarosen/ember-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesarosen/ember-i18n/merges","archive_url":"https://api.github.com/repos/jamesarosen/ember-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesarosen/ember-i18n/downloads","issues_url":"https://api.github.com/repos/jamesarosen/ember-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesarosen/ember-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesarosen/ember-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesarosen/ember-i18n/labels{/name}","releases_url":"https://api.github.com/repos/jamesarosen/ember-i18n/releases{/id}","created_at":"2011-09-28T18:16:28Z","updated_at":"2015-09-11T20:45:13Z","pushed_at":"2015-09-11T21:22:11Z","git_url":"git://github.com/jamesarosen/ember-i18n.git","ssh_url":"git@github.com:jamesarosen/ember-i18n.git","clone_url":"https://github.com/jamesarosen/ember-i18n.git","svn_url":"https://github.com/jamesarosen/ember-i18n","homepage":"","size":4777,"stargazers_count":593,"watchers_count":593,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"open_issues_count":12,"forks":124,"open_issues":12,"watchers":593,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312"},"html":{"href":"https://github.com/jamesarosen/ember-i18n/pull/312"},"issue":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/312"},"comments":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/jamesarosen/ember-i18n/statuses/83e23ea5e12e3002b250ed05d3b601152fe1d660"}}}}