angular-translate/angular-translate — pull request #496 by npuzin (2014-04-04 09:38:25+00:00)
Title: function $translate.refresh() does not trigger "deferred.reject()" in case the translation part fails to load

then we cannot properly handle a loading failure.

This fix allows to write :

$translatePartialLoader.addPart('login');
$translate.refresh().then(function() {
console.log('the login part has been loaded successfully');
}, function () {
console.log('the login part faild to load');
});