{"action":"created","issue":{"url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/297","repository_url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework","labels_url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/297/comments","events_url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/297/events","html_url":"https://github.com/angular-dashboard-framework/angular-dashboard-framework/issues/297","id":194543786,"number":297,"title":"How to internationalize title and description of an adf-widget?","user":{"login":"Sadi-1992","id":24457336,"avatar_url":"https://avatars.githubusercontent.com/u/24457336?v=3","gravatar_id":"","url":"https://api.github.com/users/Sadi-1992","html_url":"https://github.com/Sadi-1992","followers_url":"https://api.github.com/users/Sadi-1992/followers","following_url":"https://api.github.com/users/Sadi-1992/following{/other_user}","gists_url":"https://api.github.com/users/Sadi-1992/gists{/gist_id}","starred_url":"https://api.github.com/users/Sadi-1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sadi-1992/subscriptions","organizations_url":"https://api.github.com/users/Sadi-1992/orgs","repos_url":"https://api.github.com/users/Sadi-1992/repos","events_url":"https://api.github.com/users/Sadi-1992/events{/privacy}","received_events_url":"https://api.github.com/users/Sadi-1992/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-09T08:56:59Z","updated_at":"2016-12-12T12:14:18Z","closed_at":null,"body":"Hi, i'am trying to internationalize my adf-widget title and description, but it wont work...\r\nis there a way to change title and description in a controller? or is it possible to inject the $filterProvider to translate during the configphase?\r\n\r\ntried this:\r\n\r\n```\r\nangular.module('adf.widget.myWidget', ['adf.provider'])\r\n  .config(function(dashboardProvider){\r\n    function getName($filter) { var dcName = $filter('translate')('MYWIDGET.NAME'); return dcName; };\r\n    dashboardProvider\r\n      .widget('myWidget', {\r\n        title: getName(),\r\n        description: 'test',\r\n        templateUrl: '{widgetsPath}/myWidget/src/view.html',\r\n        controller: 'myWidgetCtrl',\r\n        edit: {\r\n          templateUrl: '{widgetsPath}/myWidget/src/edit.html'\r\n        }\r\n      });\r\n  })\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/comments/266417094","html_url":"https://github.com/angular-dashboard-framework/angular-dashboard-framework/issues/297#issuecomment-266417094","issue_url":"https://api.github.com/repos/angular-dashboard-framework/angular-dashboard-framework/issues/297","id":266417094,"user":{"login":"Sadi-1992","id":24457336,"avatar_url":"https://avatars.githubusercontent.com/u/24457336?v=3","gravatar_id":"","url":"https://api.github.com/users/Sadi-1992","html_url":"https://github.com/Sadi-1992","followers_url":"https://api.github.com/users/Sadi-1992/followers","following_url":"https://api.github.com/users/Sadi-1992/following{/other_user}","gists_url":"https://api.github.com/users/Sadi-1992/gists{/gist_id}","starred_url":"https://api.github.com/users/Sadi-1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sadi-1992/subscriptions","organizations_url":"https://api.github.com/users/Sadi-1992/orgs","repos_url":"https://api.github.com/users/Sadi-1992/repos","events_url":"https://api.github.com/users/Sadi-1992/events{/privacy}","received_events_url":"https://api.github.com/users/Sadi-1992/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T12:14:18Z","updated_at":"2016-12-12T12:14:18Z","body":"i've already got an translate filter.. but i cant use it during the config."}}
{"actor":{"display_login":"Sadi-1992"}}