code: function (translationId) {
                var deferred = $q.defer();
                var regardless = function (value) {
                  results[translationId] = value;
                  deferred.resolve([translationId, value]);
                };
                // we don't care whether the promise was resolved or rejected; just store the values
                $translate(translationId, interpolateParams, interpolationId, defaultTranslationText).then(regardless, regardless);
                return deferred.promise;
              }
docs: promises to wait for Wraps the promise a) being always resolved and b) storing the link id->value