{"action":"created","issue":{"url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/1","repository_url":"https://api.github.com/repos/Astrotomic/notifynder-documentation","labels_url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/1/comments","events_url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/1/events","html_url":"https://github.com/Astrotomic/notifynder-documentation/issues/1","id":204894223,"number":1,"title":"Notification Localization","user":{"login":"WingsOfAltair","id":914650,"avatar_url":"https://avatars.githubusercontent.com/u/914650?v=3","gravatar_id":"","url":"https://api.github.com/users/WingsOfAltair","html_url":"https://github.com/WingsOfAltair","followers_url":"https://api.github.com/users/WingsOfAltair/followers","following_url":"https://api.github.com/users/WingsOfAltair/following{/other_user}","gists_url":"https://api.github.com/users/WingsOfAltair/gists{/gist_id}","starred_url":"https://api.github.com/users/WingsOfAltair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WingsOfAltair/subscriptions","organizations_url":"https://api.github.com/users/WingsOfAltair/orgs","repos_url":"https://api.github.com/users/WingsOfAltair/repos","events_url":"https://api.github.com/users/WingsOfAltair/events{/privacy}","received_events_url":"https://api.github.com/users/WingsOfAltair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-02T14:47:02Z","updated_at":"2017-02-02T15:56:45Z","closed_at":null,"body":"Hi :)\r\n\r\nWe have tried to refer to your translation docs, but we could not use it properly.\r\nWe read the notifications like this:\r\n```\r\n$user->getNotificationRelation($limit = null, $paginate = null)\r\n                    ->where('read', 0)\r\n                    ->orderBy('read', 'asc')\r\n                    ->get();\r\n```\r\nWe also added the translations in a `resources\\lang\\en\\notifications.php` like this:\r\n```\r\nreturn[\r\n    ['visit'] => [\r\n        'checkin' => 'Hello {to.name}, {from.name} is now following you and want to let you know \"{extra.message}\".',\r\n        'checkout' => 'Hello {to.name}, {from.name} is now following you and want to let you know \"{extra.message}\".'\r\n    ],\r\n    ['place'] => [\r\n        'checkin' => 'Hello {to.name}, {from.name} is now following you and want to let you know \"{extra.message}\".',\r\n        'checkout' => 'Hello {to.name}, {from.name} is now following you and want to let you know \"{extra.message}\".'\r\n    ]\r\n];\r\n```\r\nExample of output:\r\n`[{\"id\":9,\"from_id\":\"14\",\"from_type\":\"App\\\\User\",\"to_id\":\"5\",\"to_type\":\"App\\\\User\",\"category_id\":1,\"url\":\"\\/\",\"extra\":{\"geo_name\":\"Samir\"},\"read\":0,\"created_at\":\"2017-02-02 11:37:53\",\"updated_at\":\"2017-02-02 11:37:53\",\"expire_time\":null,\"stack_id\":null,\"text\":\"Erika Reichel checkin Samir\",\"to\":{\"id\":5,\"name\":\"Erika Reichel\",\"email\":\"pthompson@example.org\",\"mobile_number\":\"(852) 294-6865 x9369\",\"country_code\":\"+962\",\"confirmation_code\":\"a3581408450e5eb4463bc69e450ccdea\",\"confirmed\":true,\"gender\":\"male\",\"profile_completed\":true,\"allow_users_see_me\":true,\"created_at\":\"2017-02-02 10:45:22\",\"updated_at\":\"2017-02-02 10:45:23\",\"deleted_at\":null,\"status\":1,\"parent_id\":null,\"position\":null,\"real_depth\":null,\"current_team_id\":12,\"source_lat_long\":\"0101000020E6100000BDC5C37B0E804DC0D00B772E8C1C2340\",\"social_avatar_uri\":null,\"last_login\":null,\"active_invitation_id\":null,\"EndpointArn\":null,\"organization_id\":1,\"mobile_token\":null}}]`\r\n\r\nHow do we get it to output in the format of the translation template instead of the raw JSON output?"},"comment":{"url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/comments/276997144","html_url":"https://github.com/Astrotomic/notifynder-documentation/issues/1#issuecomment-276997144","issue_url":"https://api.github.com/repos/Astrotomic/notifynder-documentation/issues/1","id":276997144,"user":{"login":"Gummibeer","id":6187884,"avatar_url":"https://avatars.githubusercontent.com/u/6187884?v=3","gravatar_id":"","url":"https://api.github.com/users/Gummibeer","html_url":"https://github.com/Gummibeer","followers_url":"https://api.github.com/users/Gummibeer/followers","following_url":"https://api.github.com/users/Gummibeer/following{/other_user}","gists_url":"https://api.github.com/users/Gummibeer/gists{/gist_id}","starred_url":"https://api.github.com/users/Gummibeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gummibeer/subscriptions","organizations_url":"https://api.github.com/users/Gummibeer/orgs","repos_url":"https://api.github.com/users/Gummibeer/repos","events_url":"https://api.github.com/users/Gummibeer/events{/privacy}","received_events_url":"https://api.github.com/users/Gummibeer/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T15:56:45Z","updated_at":"2017-02-02T15:56:45Z","body":"Hey,\r\nexcept of that this is the wrong repo for an issue with `fenos/Notifynder`.\r\nIt doesn't output the translation template - just the parsed body text. For what do you need the template?"}}
{"actor":{"display_login":"Gummibeer"}}