{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/316","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/316/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/316/events","html_url":"https://github.com/angular-translate/angular-translate/issues/316","id":26532764,"number":316,"title":"Insert new translations to part at runtime.","user":{"login":"Shakeandbake","id":86532,"avatar_url":"https://avatars.githubusercontent.com/u/86532?v=3","gravatar_id":"","url":"https://api.github.com/users/Shakeandbake","html_url":"https://github.com/Shakeandbake","followers_url":"https://api.github.com/users/Shakeandbake/followers","following_url":"https://api.github.com/users/Shakeandbake/following{/other_user}","gists_url":"https://api.github.com/users/Shakeandbake/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakeandbake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakeandbake/subscriptions","organizations_url":"https://api.github.com/users/Shakeandbake/orgs","repos_url":"https://api.github.com/users/Shakeandbake/repos","events_url":"https://api.github.com/users/Shakeandbake/events{/privacy}","received_events_url":"https://api.github.com/users/Shakeandbake/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/discussion","name":"discussion","color":"006b75"},{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/enhancement","name":"enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-01-29T16:29:13Z","updated_at":"2015-04-13T21:42:13Z","closed_at":null,"body":"I have a very large set of translated values which the page would only use a small subset of based on query results and business logic. Some key example keys would be Q50285, QA303 etc. I would like to add these to the partial loader under a specific 'part' at run time when resolving a promise from a rest call. The standard translate provider seems to merge tables when calling translations('lang', moreData) but the partial loader simply replaces the table with the newly provided. Can the partial loader setPart be changed to also perform a merge?"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/92509580","html_url":"https://github.com/angular-translate/angular-translate/issues/316#issuecomment-92509580","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/316","id":92509580,"user":{"login":"DWand","id":4358089,"avatar_url":"https://avatars.githubusercontent.com/u/4358089?v=3","gravatar_id":"","url":"https://api.github.com/users/DWand","html_url":"https://github.com/DWand","followers_url":"https://api.github.com/users/DWand/followers","following_url":"https://api.github.com/users/DWand/following{/other_user}","gists_url":"https://api.github.com/users/DWand/gists{/gist_id}","starred_url":"https://api.github.com/users/DWand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DWand/subscriptions","organizations_url":"https://api.github.com/users/DWand/orgs","repos_url":"https://api.github.com/users/DWand/repos","events_url":"https://api.github.com/users/DWand/events{/privacy}","received_events_url":"https://api.github.com/users/DWand/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T21:42:13Z","updated_at":"2015-04-13T21:42:13Z","body":"@knalli, there was nothing said here for about a year. I'd like to said against this feature. But, however, it could be easily implemented if needed. The only thing is that we should think about events fired by this method.\r\n\r\nAdditional thoughts:\r\n\r\n* The `setPart` method was initially designed as a replacement of the `$translate.translations` method (it becomes useless with the `$translate.refresh` method).\r\n* As I understand, there is only one source of truth in the partial loader now - the server. Adding this method we'll introduce a new one - a user.\r\n* It is impossible to restore a translation table of the part after deletion if it was changed this way.\r\n* This functionality can be implemented in a custom loader."}}