{"action":"created","issue":{"url":"https://api.github.com/repos/react-community/react-native-languages/issues/10","repository_url":"https://api.github.com/repos/react-community/react-native-languages","labels_url":"https://api.github.com/repos/react-community/react-native-languages/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-native-languages/issues/10/comments","events_url":"https://api.github.com/repos/react-community/react-native-languages/issues/10/events","html_url":"https://github.com/react-community/react-native-languages/issues/10","id":358884095,"node_id":"MDU6SXNzdWUzNTg4ODQwOTU=","number":10,"title":"Dynamically change language inside app","user":{"login":"tadeolinco","id":15124480,"node_id":"MDQ6VXNlcjE1MTI0NDgw","avatar_url":"https://avatars1.githubusercontent.com/u/15124480?v=4","gravatar_id":"","url":"https://api.github.com/users/tadeolinco","html_url":"https://github.com/tadeolinco","followers_url":"https://api.github.com/users/tadeolinco/followers","following_url":"https://api.github.com/users/tadeolinco/following{/other_user}","gists_url":"https://api.github.com/users/tadeolinco/gists{/gist_id}","starred_url":"https://api.github.com/users/tadeolinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadeolinco/subscriptions","organizations_url":"https://api.github.com/users/tadeolinco/orgs","repos_url":"https://api.github.com/users/tadeolinco/repos","events_url":"https://api.github.com/users/tadeolinco/events{/privacy}","received_events_url":"https://api.github.com/users/tadeolinco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-11T04:41:34Z","updated_at":"2018-11-13T12:52:21Z","closed_at":null,"author_association":"NONE","body":"Can you provide an example of dynamically change the language inside the app like the one you mentioned in #1? I don't understand when `RN.languages` event listener for change actually triggers. "},"comment":{"url":"https://api.github.com/repos/react-community/react-native-languages/issues/comments/438255070","html_url":"https://github.com/react-community/react-native-languages/issues/10#issuecomment-438255070","issue_url":"https://api.github.com/repos/react-community/react-native-languages/issues/10","id":438255070,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODI1NTA3MA==","user":{"login":"zoontek","id":1902323,"node_id":"MDQ6VXNlcjE5MDIzMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/1902323?v=4","gravatar_id":"","url":"https://api.github.com/users/zoontek","html_url":"https://github.com/zoontek","followers_url":"https://api.github.com/users/zoontek/followers","following_url":"https://api.github.com/users/zoontek/following{/other_user}","gists_url":"https://api.github.com/users/zoontek/gists{/gist_id}","starred_url":"https://api.github.com/users/zoontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoontek/subscriptions","organizations_url":"https://api.github.com/users/zoontek/orgs","repos_url":"https://api.github.com/users/zoontek/repos","events_url":"https://api.github.com/users/zoontek/events{/privacy}","received_events_url":"https://api.github.com/users/zoontek/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T12:52:21Z","updated_at":"2018-11-13T12:52:21Z","author_association":"COLLABORATOR","body":"@sWgiraffe @MrEdinLaw An example is given, it's the first answer of this issue.\r\nListen for the `change` event on your highest level component: https://github.com/react-community/react-native-languages/blob/master/example/src/App.js\r\n\r\nIf your app doesn't reload, pass the language to `<Root />` as a prop (even if you don't use it), it will update.\r\n\r\nThis example (with i18n-js) is pretty bad because the lib is not suited for React env (it's here only because `react-native-i18n` worked that way). I might add various proper examples in the future update (with `react-navigation`)"}}
{"actor":{"display_login":"zoontek"}}