diff --git a/src/service/translate.js b/src/service/translate.js index 4dbf03483..2ff49abdf 100644 --- a/src/service/translate.js +++ b/src/service/translate.js @@ -485,9 +485,10 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY', * Tells angular-translate to use `$translateUrlLoader` extension service as loader. * * @param {string} url Url + * @param {Object=} options Optional configuration object */ - this.useUrlLoader = function (url) { - return this.useLoader('$translateUrlLoader', { url: url }); + this.useUrlLoader = function (url, options) { + return this.useLoader('$translateUrlLoader', angular.extend({ url: url }, options)); }; /**