{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4408","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4408/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4408/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4408/events","html_url":"https://github.com/Automattic/wp-calypso/pull/4408","id":144422573,"number":4408,"title":"Force a rerendering of translations when the locale changes in props.","user":{"login":"kwight","id":349751,"avatar_url":"https://avatars.githubusercontent.com/u/349751?v=3","gravatar_id":"","url":"https://api.github.com/users/kwight","html_url":"https://github.com/kwight","followers_url":"https://api.github.com/users/kwight/followers","following_url":"https://api.github.com/users/kwight/following{/other_user}","gists_url":"https://api.github.com/users/kwight/gists{/gist_id}","starred_url":"https://api.github.com/users/kwight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwight/subscriptions","organizations_url":"https://api.github.com/users/kwight/orgs","repos_url":"https://api.github.com/users/kwight/repos","events_url":"https://api.github.com/users/kwight/events{/privacy}","received_events_url":"https://api.github.com/users/kwight/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Signup","name":"Signup","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20In%20Progress","name":"[Status] In Progress","color":"207de5"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-30T00:01:47Z","updated_at":"2016-03-31T04:26:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4408","html_url":"https://github.com/Automattic/wp-calypso/pull/4408","diff_url":"https://github.com/Automattic/wp-calypso/pull/4408.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/4408.patch"},"body":"Using the \"Also available in...\" prompt in signup to switch languages doesn't work properly. For example, from FR to EN works the first time, but not the second (going back to FR).\r\n\r\n![screen shot 2016-03-29 at 5 00 05 pm](https://cloud.githubusercontent.com/assets/349751/14127849/21a826c6-f5d0-11e5-8fdd-cfa51c7a4436.png)\r\n\r\n![screen shot 2016-03-29 at 5 00 29 pm](https://cloud.githubusercontent.com/assets/349751/14127859/2c16f4de-f5d0-11e5-8a35-3e526355e9f0.png)\r\n\r\n![screen shot 2016-03-29 at 5 00 46 pm](https://cloud.githubusercontent.com/assets/349751/14127862/33d05328-f5d0-11e5-8780-b9cd851a5cae.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/203747220","html_url":"https://github.com/Automattic/wp-calypso/pull/4408#issuecomment-203747220","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4408","id":203747220,"user":{"login":"deBhal","id":5952255,"avatar_url":"https://avatars.githubusercontent.com/u/5952255?v=3","gravatar_id":"","url":"https://api.github.com/users/deBhal","html_url":"https://github.com/deBhal","followers_url":"https://api.github.com/users/deBhal/followers","following_url":"https://api.github.com/users/deBhal/following{/other_user}","gists_url":"https://api.github.com/users/deBhal/gists{/gist_id}","starred_url":"https://api.github.com/users/deBhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deBhal/subscriptions","organizations_url":"https://api.github.com/users/deBhal/orgs","repos_url":"https://api.github.com/users/deBhal/repos","events_url":"https://api.github.com/users/deBhal/events{/privacy}","received_events_url":"https://api.github.com/users/deBhal/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T04:26:15Z","updated_at":"2016-03-31T04:26:15Z","body":"It sounds like something's going wrong with i18nState in the i18n module.  I'll get in and debug this tomorrow, but in the meantime, there's some special casing around 'en' - is it any second change of locale or is 'en' special?\r\n\r\n`reRenderTranslations()` doesn't change any of the translation data, it literally just rerenders all the translations.  We added this hook for translation plugins, e.g. the Community Translator triggers it when it turns on or off, so that i18n can run all the translations through the plugins.\r\n\r\nYou shouldn't need to do it here.  The i18n mixin should emit a change event and rerender everything when the locale is changed in `setLocale()`.\r\n\r\nI might be missing some important context here.  Where is the props change coming from?"}}