{"action":"created","issue":{"url":"https://api.github.com/repos/svenfuchs/i18n/issues/261","repository_url":"https://api.github.com/repos/svenfuchs/i18n","labels_url":"https://api.github.com/repos/svenfuchs/i18n/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/svenfuchs/i18n/issues/261/comments","events_url":"https://api.github.com/repos/svenfuchs/i18n/issues/261/events","html_url":"https://github.com/svenfuchs/i18n/pull/261","id":35506055,"number":261,"title":"Don't store translations for locales not set as available with I18n#available_locales=","user":{"login":"Chipairon","id":672162,"avatar_url":"https://avatars.githubusercontent.com/u/672162?v=3","gravatar_id":"","url":"https://api.github.com/users/Chipairon","html_url":"https://github.com/Chipairon","followers_url":"https://api.github.com/users/Chipairon/followers","following_url":"https://api.github.com/users/Chipairon/following{/other_user}","gists_url":"https://api.github.com/users/Chipairon/gists{/gist_id}","starred_url":"https://api.github.com/users/Chipairon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chipairon/subscriptions","organizations_url":"https://api.github.com/users/Chipairon/orgs","repos_url":"https://api.github.com/users/Chipairon/repos","events_url":"https://api.github.com/users/Chipairon/events{/privacy}","received_events_url":"https://api.github.com/users/Chipairon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-06-11T17:21:16Z","updated_at":"2016-11-16T06:52:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/svenfuchs/i18n/pulls/261","html_url":"https://github.com/svenfuchs/i18n/pull/261","diff_url":"https://github.com/svenfuchs/i18n/pull/261.diff","patch_url":"https://github.com/svenfuchs/i18n/pull/261.patch"},"body":"If available locales are set explicitly, that means we don't want to work with other locales. This commit puts a check on Simple#store_translation to check if @@available_locales has been set explicitly, and in that case, does not store the data.\n\nRight now, this translations are kept in memory and cached, but never used.\n\nIf the value of 'available_locales' is not set explicitly, it works as before, storing translations in any locale.\n"},"comment":{"url":"https://api.github.com/repos/svenfuchs/i18n/issues/comments/260868300","html_url":"https://github.com/svenfuchs/i18n/pull/261#issuecomment-260868300","issue_url":"https://api.github.com/repos/svenfuchs/i18n/issues/261","id":260868300,"user":{"login":"radar","id":2687,"avatar_url":"https://avatars.githubusercontent.com/u/2687?v=3","gravatar_id":"","url":"https://api.github.com/users/radar","html_url":"https://github.com/radar","followers_url":"https://api.github.com/users/radar/followers","following_url":"https://api.github.com/users/radar/following{/other_user}","gists_url":"https://api.github.com/users/radar/gists{/gist_id}","starred_url":"https://api.github.com/users/radar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radar/subscriptions","organizations_url":"https://api.github.com/users/radar/orgs","repos_url":"https://api.github.com/users/radar/repos","events_url":"https://api.github.com/users/radar/events{/privacy}","received_events_url":"https://api.github.com/users/radar/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T06:52:03Z","updated_at":"2016-11-16T06:52:03Z","body":"I am not sure what bug this is fixing. Do you have a simple test case that I can use to reproduce it? I've looked at the test included in this PR and it doesn't make sense as a way to reproduce this bug for me."}}
{"actor":{"display_login":"radar"}}