angular-translate-interpolation-messageformat
Advanced tools
Comparing version 2.18.3 to 2.18.4
/*! | ||
* angular-translate - v2.18.3 - 2020-07-08 | ||
* angular-translate - v2.18.4 - 2021-01-14 | ||
* | ||
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT | ||
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT | ||
*/ | ||
@@ -6,0 +6,0 @@ (function (root, factory) { |
/*! | ||
* angular-translate - v2.18.3 - 2020-07-08 | ||
* angular-translate - v2.18.4 - 2021-01-14 | ||
* | ||
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT | ||
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT | ||
*/ | ||
!function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("messageformat")):e(t.MessageFormat)}(this,function(r){function i(u,t,e,n){"use strict";var a={},c=t.get(e),f=new r("en");return angular.isFunction(n)&&n(f),c||(c=t(e)),c.put("en",f),a.setLocale=function(t){(f=c.get(t))||(f=new r(t),angular.isFunction(n)&&n(f),c.put(t,f))},a.getInterpolationIdentifier=function(){return"messageformat"},a.useSanitizeValueStrategy=function(t){return u.useStrategy(t),this},a.interpolate=function(t,e,n,a){e=e||{},e=u.sanitize(e,"params",a);var r=c.get("mf:"+t);if(!r){for(var i in e)if(e.hasOwnProperty(i)){var o=parseInt(e[i],10);angular.isNumber(o)&&""+o===e[i]&&(e[i]=o)}r=f.compile(t),c.put("mf:"+t,r)}var s=r(e);return u.sanitize(s,"text",a)},a}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",function(){"use strict";var a;this.messageFormatConfigurer=function(t){a=t},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(t,e,n){return i(t,e,n,a)}]}),i.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}); |
{ | ||
"name": "angular-translate-interpolation-messageformat", | ||
"description": "A plugin for Angular Translate", | ||
"version": "2.18.3", | ||
"version": "2.18.4", | ||
"main": "./angular-translate-interpolation-messageformat.js", | ||
@@ -10,5 +10,5 @@ "ignore": [], | ||
"dependencies": { | ||
"angular-translate": "~2.18.3", | ||
"angular-translate": "~2.18.4", | ||
"messageformat": "~1.0.2" | ||
} | ||
} |
{ | ||
"name": "angular-translate-interpolation-messageformat", | ||
"version": "2.18.3", | ||
"version": "2.18.4", | ||
"description": "Uses MessageFormat.js to interpolate strings against some values.", | ||
@@ -22,5 +22,5 @@ "main": "angular-translate-interpolation-messageformat.js", | ||
"dependencies": { | ||
"angular-translate": "~2.18.3", | ||
"angular-translate": "~2.18.4", | ||
"messageformat": "~1.0.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Updatedangular-translate@~2.18.4