{"action":"created","issue":{"url":"https://api.github.com/repos/forkcms/forkcms/issues/2022","repository_url":"https://api.github.com/repos/forkcms/forkcms","labels_url":"https://api.github.com/repos/forkcms/forkcms/issues/2022/labels{/name}","comments_url":"https://api.github.com/repos/forkcms/forkcms/issues/2022/comments","events_url":"https://api.github.com/repos/forkcms/forkcms/issues/2022/events","html_url":"https://github.com/forkcms/forkcms/issues/2022","id":219610797,"number":2022,"title":"Should we add `$this->tpl->assignGlobal('locale', Locale::frontendLanguage());` ?","user":{"login":"jeroendesloovere","id":588616,"avatar_url":"https://avatars2.githubusercontent.com/u/588616?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroendesloovere","html_url":"https://github.com/jeroendesloovere","followers_url":"https://api.github.com/users/jeroendesloovere/followers","following_url":"https://api.github.com/users/jeroendesloovere/following{/other_user}","gists_url":"https://api.github.com/users/jeroendesloovere/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroendesloovere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroendesloovere/subscriptions","organizations_url":"https://api.github.com/users/jeroendesloovere/orgs","repos_url":"https://api.github.com/users/jeroendesloovere/repos","events_url":"https://api.github.com/users/jeroendesloovere/events{/privacy}","received_events_url":"https://api.github.com/users/jeroendesloovere/received_events","type":"User","site_admin":false},"labels":[{"id":176406442,"url":"https://api.github.com/repos/forkcms/forkcms/labels/Enhancement","name":"Enhancement","color":"02d7e1","default":false},{"id":74768823,"url":"https://api.github.com/repos/forkcms/forkcms/labels/RFC","name":"RFC","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-04-05T14:53:26Z","updated_at":"2017-06-02T07:54:09Z","closed_at":null,"body":"## Type\r\n\r\n- Enhancement\r\n\r\n## Problem description\r\n\r\n> When building modules with Doctrine and Custom Translation Entities, it is often required to have a locale in the template. So things like `{{ realization.getTranslation(locale).name }}` get possible.\r\n\r\n## Expected behavior / Proposed solutions\r\n\r\n> If we assign the global variable 'local' `$this->tpl->assignGlobal('locale', Locale::frontendLanguage());`, then each widget/action won't need to have this line of code anymore.\r\n"},"comment":{"url":"https://api.github.com/repos/forkcms/forkcms/issues/comments/305716726","html_url":"https://github.com/forkcms/forkcms/issues/2022#issuecomment-305716726","issue_url":"https://api.github.com/repos/forkcms/forkcms/issues/2022","id":305716726,"user":{"login":"carakas","id":3634654,"avatar_url":"https://avatars0.githubusercontent.com/u/3634654?v=3","gravatar_id":"","url":"https://api.github.com/users/carakas","html_url":"https://github.com/carakas","followers_url":"https://api.github.com/users/carakas/followers","following_url":"https://api.github.com/users/carakas/following{/other_user}","gists_url":"https://api.github.com/users/carakas/gists{/gist_id}","starred_url":"https://api.github.com/users/carakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carakas/subscriptions","organizations_url":"https://api.github.com/users/carakas/orgs","repos_url":"https://api.github.com/users/carakas/repos","events_url":"https://api.github.com/users/carakas/events{/privacy}","received_events_url":"https://api.github.com/users/carakas/received_events","type":"User","site_admin":false},"created_at":"2017-06-02T07:54:09Z","updated_at":"2017-06-02T07:54:09Z","body":"If you need that value object in your template your logic is flawed.\r\nI've yet to see a good example that would warrant having it available in the template\r\n"}}
{"actor":{"display_login":"carakas"}}