{"action":"opened","issue":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/332","repository_url":"https://api.github.com/repos/LaxarJS/laxar","labels_url":"https://api.github.com/repos/LaxarJS/laxar/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/LaxarJS/laxar/issues/332/comments","events_url":"https://api.github.com/repos/LaxarJS/laxar/issues/332/events","html_url":"https://github.com/LaxarJS/laxar/issues/332","id":166510962,"number":332,"title":"axI18n: add convenience for locale changes","user":{"login":"alex3683","id":768322,"avatar_url":"https://avatars.githubusercontent.com/u/768322?v=3","gravatar_id":"","url":"https://api.github.com/users/alex3683","html_url":"https://github.com/alex3683","followers_url":"https://api.github.com/users/alex3683/followers","following_url":"https://api.github.com/users/alex3683/following{/other_user}","gists_url":"https://api.github.com/users/alex3683/gists{/gist_id}","starred_url":"https://api.github.com/users/alex3683/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex3683/subscriptions","organizations_url":"https://api.github.com/users/alex3683/orgs","repos_url":"https://api.github.com/users/alex3683/repos","events_url":"https://api.github.com/users/alex3683/events{/privacy}","received_events_url":"https://api.github.com/users/alex3683/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-20T07:04:52Z","updated_at":"2016-07-20T07:04:52Z","closed_at":null,"body":"Common use case is that a widget listens to `didChangeLocale` events for a certain locale and creates a localizer for the according language tag. This could be added as a convenience to the `axI18n` service, offering the possibility to register a callback that is called with a new localizer whenever the locale or the language tag of the locale changes.\r\n\r\nExample:\r\n```\r\naxI18n.whenLocaleChanged( localizer => {\r\n   renderAllTexts( localizer );\r\n} );\r\n```"}}
{"actor":{"display_login":"alex3683"}}