{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/744","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/744/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/744/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/744/events","html_url":"https://github.com/angular-translate/angular-translate/issues/744","id":43972837,"number":744,"title":"Add a prefix or nested translation","user":{"login":"EdgarsZagorskis","id":3288014,"avatar_url":"https://avatars.githubusercontent.com/u/3288014?v=3","gravatar_id":"","url":"https://api.github.com/users/EdgarsZagorskis","html_url":"https://github.com/EdgarsZagorskis","followers_url":"https://api.github.com/users/EdgarsZagorskis/followers","following_url":"https://api.github.com/users/EdgarsZagorskis/following{/other_user}","gists_url":"https://api.github.com/users/EdgarsZagorskis/gists{/gist_id}","starred_url":"https://api.github.com/users/EdgarsZagorskis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdgarsZagorskis/subscriptions","organizations_url":"https://api.github.com/users/EdgarsZagorskis/orgs","repos_url":"https://api.github.com/users/EdgarsZagorskis/repos","events_url":"https://api.github.com/users/EdgarsZagorskis/events{/privacy}","received_events_url":"https://api.github.com/users/EdgarsZagorskis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/waiting","name":"waiting","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-09-25T21:56:14Z","updated_at":"2015-03-04T19:56:37Z","closed_at":"2014-11-23T18:26:45Z","body":"Hi. Excuse me if this issue was discussed/resolved, but i burn in desperate desire to contribute. \r\nI use this wonderful module on a kind-of large system with thousands of translation keys and i feel a desperate need for some sort of grouping. \r\nCurrently i prefix keys like SectionA:Button:Save, SectionB:Button:Save, but maybe you have thought about some general approach? For instance - adding a \"translate-prefix/section/area\" that would find same keys with: \r\n&lt;ANY translate-prefix=\"SectionA:\" translate&gt;Button:Save&lt;ANY&gt;\r\n&lt;ANY translate-prefix=\"SectionA:\"&gt;{{'Button:Save'|translate}}&lt;/ANY&gt;\r\n&lt;ANY translate-prefix=\"SectionA:\" ng-bind=\"'Button:Save'|translate\"&gt;&lt;/ANY&gt;\r\n\r\nor perhaps i would be possible to use an object approach where values are objects like:\r\n{\"SectionA\":{\"Button\":{\"Save\":\"Save Section A\"}}} and they can be adressed:\r\n&lt;ANY translate&gt;SectionA.Button.Save&lt;/ANY&gt;\r\n&lt;ANY&gt;{{'SectionA.Button.Save'|translate}}&lt;/ANY&gt;\r\n&lt;ANY ng-bind=\"'SectionA.Button.Save'|translate\"&gt;&lt;/ANY&gt;\r\n\r\nPerhaps the later approach could go well with #604"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/77233577","html_url":"https://github.com/angular-translate/angular-translate/issues/744#issuecomment-77233577","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/744","id":77233577,"user":{"login":"lepipele","id":5191402,"avatar_url":"https://avatars.githubusercontent.com/u/5191402?v=3","gravatar_id":"","url":"https://api.github.com/users/lepipele","html_url":"https://github.com/lepipele","followers_url":"https://api.github.com/users/lepipele/followers","following_url":"https://api.github.com/users/lepipele/following{/other_user}","gists_url":"https://api.github.com/users/lepipele/gists{/gist_id}","starred_url":"https://api.github.com/users/lepipele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepipele/subscriptions","organizations_url":"https://api.github.com/users/lepipele/orgs","repos_url":"https://api.github.com/users/lepipele/repos","events_url":"https://api.github.com/users/lepipele/events{/privacy}","received_events_url":"https://api.github.com/users/lepipele/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T19:56:37Z","updated_at":"2015-03-04T19:56:37Z","body":"Can we then start discussion on this? Because I really think this would be welcome addition if it doesn't impact performance too much. It helps a lot with clarity, typing and is natural extension of namespaces - if you are allowing:\r\n\r\n\t{\r\n\t\tnamespace: {\r\n\t\t\ttitle: \"Title\",\r\n\t\t\tbody: \"Body\"\r\n\t\t}\r\n\t}\r\n\r\nThen instead of:\r\n\r\n\t<div>\r\n\t\t<p translate>namespace.title</p>\r\n\t\t<p translate>namespace.body</p>\r\n\t</div>\r\n\r\nWe should be able to support:\r\n\r\n\t<div translate-ns=\"namespace\">\r\n\t\t<p translate>title</p>\r\n\t\t<p translate>body</p>\r\n\t</div>\r\n\r\nThis is definitely not a critical feature, but it would be nice to have."}}