@angular/localize
Advanced tools
Comparing version 9.0.0-rc.0 to 9.0.0-rc.1
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -10,3 +10,3 @@ * License: MIT | ||
factory(); | ||
}(function () { 'use strict'; | ||
}((function () { 'use strict'; | ||
@@ -222,3 +222,3 @@ /** | ||
})); | ||
}))); | ||
//# sourceMappingURL=localize-init.umd.js.map |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
* License: MIT | ||
*/ | ||
!function(e){"function"==typeof define&&define.amd?define("@angular/localize/init",e):e()}(function(){"use strict"; | ||
!function(e){"function"==typeof define&&define.amd?define("@angular/localize/init",e):e()}((function(){"use strict"; | ||
/** | ||
@@ -27,2 +27,2 @@ * @license | ||
* found in the LICENSE file at https://angular.io/license | ||
*/(e,n)+1):e}(e||t||n||o).$localize=i}); | ||
*/(e,n)+1):e}(e||t||n||o).$localize=i})); |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -11,3 +11,3 @@ * License: MIT | ||
(global = global || self, factory((global.ng = global.ng || {}, global.ng.localize = {}), global.ng.compiler)); | ||
}(this, function (exports, compiler) { 'use strict'; | ||
}(this, (function (exports, compiler) { 'use strict'; | ||
@@ -569,3 +569,8 @@ /** | ||
exports.ɵcomputeMsgId = compiler.computeMsgId; | ||
Object.defineProperty(exports, 'ɵcomputeMsgId', { | ||
enumerable: true, | ||
get: function () { | ||
return compiler.computeMsgId; | ||
} | ||
}); | ||
exports.clearTranslations = clearTranslations; | ||
@@ -586,3 +591,3 @@ exports.loadTranslations = loadTranslations; | ||
})); | ||
}))); | ||
//# sourceMappingURL=localize.umd.js.map |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
* License: MIT | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler")):"function"==typeof define&&define.amd?define("@angular/localize",["exports","@angular/compiler"],t):t(((e=e||self).ng=e.ng||{},e.ng.localize={}),e.ng.compiler)}(this,function(e,t){"use strict"; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler")):"function"==typeof define&&define.amd?define("@angular/localize",["exports","@angular/compiler"],t):t(((e=e||self).ng=e.ng||{},e.ng.localize={}),e.ng.compiler)}(this,(function(e,t){"use strict"; | ||
/** | ||
@@ -13,3 +13,3 @@ * @license | ||
* found in the LICENSE file at https://angular.io/license | ||
*/var r=":",n="|",o="@@",i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function s(e,r){for(var n,o={},i=l(e[0],e.raw[0]),a=[i.text],s=[],u=i.text,f=1;f<e.length;f++){var p=c(e[f],e.raw[f]),d=p.text,g=p.block,m=void 0===g?1===(n=f)?"PH":"PH_"+(n-1):g;u+="{$"+m+"}"+d,void 0!==r&&(o[m]=r[f-1]),s.push(m),a.push(d)}return{messageId:i.id||t.computeMsgId(u,i.meaning||""),substitutions:o,messageString:u,meaning:i.meaning||"",description:i.description||"",messageParts:a,placeholderNames:s}}function l(e,t){var r=c(e,t),i=r.text,s=r.block;if(void 0===s)return{text:i,meaning:void 0,description:void 0,id:void 0};var l=a(s.split(o,2),2),u=l[1],f=a(l[0].split(n,2),2),p=f[0],d=f[1];return void 0===d&&(d=p,p=void 0),""===d&&(d=void 0),{text:i,meaning:p,description:d,id:u}}function c(e,t){if((t=t||e).charAt(0)!==r)return{text:e};var n=u(e,t);return{block:e.substring(1,n),text:e.substring(n+1)}}function u(e,t){for(var n=1,o=1;n<e.length;n++,o++)if("\\"===t[o])o++;else if(e[n]===r)return n;throw new Error('Unterminated $localize metadata block in "'+t+'".')}var f=function(e){function t(t){var r=e.call(this,"No translation found for "+m(t)+".")||this;return r.parsedMessage=t,r.type="MissingTranslationError",r}return function r(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function p(e,t,r){var n=s(t,r),o=e[n.messageId];if(void 0===o)throw new f(n);return[o.messageParts,o.placeholderNames.map(function(e){if(n.substitutions.hasOwnProperty(e))return n.substitutions[e];throw new Error("No placeholder found with name "+e+" in message "+m(n)+".")})]}function d(e){for(var t=e.split(/{\$([^}]*)}/),n=[t[0]],o=[],i=1;i<t.length-1;i+=2)o.push(t[i]),n.push(""+t[i+1]);var a=n.map(function(e){return e.charAt(0)===r?"\\"+e:e});return{messageParts:g(n,a),placeholderNames:o}}function g(e,t){return Object.defineProperty(e,"raw",{value:t}),e}function m(e){return'"'+e.messageId+'" ("'+e.messageString+'"'+(e.meaning&&' - "'+e.meaning+'"')+")"} | ||
*/var r=":",n="|",o="@@",i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function s(e,r){for(var n,o={},i=l(e[0],e.raw[0]),a=[i.text],s=[],u=i.text,f=1;f<e.length;f++){var p=c(e[f],e.raw[f]),d=p.text,g=p.block,m=void 0===g?1===(n=f)?"PH":"PH_"+(n-1):g;u+="{$"+m+"}"+d,void 0!==r&&(o[m]=r[f-1]),s.push(m),a.push(d)}return{messageId:i.id||t.computeMsgId(u,i.meaning||""),substitutions:o,messageString:u,meaning:i.meaning||"",description:i.description||"",messageParts:a,placeholderNames:s}}function l(e,t){var r=c(e,t),i=r.text,s=r.block;if(void 0===s)return{text:i,meaning:void 0,description:void 0,id:void 0};var l=a(s.split(o,2),2),u=l[1],f=a(l[0].split(n,2),2),p=f[0],d=f[1];return void 0===d&&(d=p,p=void 0),""===d&&(d=void 0),{text:i,meaning:p,description:d,id:u}}function c(e,t){if((t=t||e).charAt(0)!==r)return{text:e};var n=u(e,t);return{block:e.substring(1,n),text:e.substring(n+1)}}function u(e,t){for(var n=1,o=1;n<e.length;n++,o++)if("\\"===t[o])o++;else if(e[n]===r)return n;throw new Error('Unterminated $localize metadata block in "'+t+'".')}var f=function(e){function t(t){var r=e.call(this,"No translation found for "+m(t)+".")||this;return r.parsedMessage=t,r.type="MissingTranslationError",r}return function r(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function p(e,t,r){var n=s(t,r),o=e[n.messageId];if(void 0===o)throw new f(n);return[o.messageParts,o.placeholderNames.map((function(e){if(n.substitutions.hasOwnProperty(e))return n.substitutions[e];throw new Error("No placeholder found with name "+e+" in message "+m(n)+".")}))]}function d(e){for(var t=e.split(/{\$([^}]*)}/),n=[t[0]],o=[],i=1;i<t.length-1;i+=2)o.push(t[i]),n.push(""+t[i+1]);var a=n.map((function(e){return e.charAt(0)===r?"\\"+e:e}));return{messageParts:g(n,a),placeholderNames:o}}function g(e,t){return Object.defineProperty(e,"raw",{value:t}),e}function m(e){return'"'+e.messageId+'" ("'+e.messageString+'"'+(e.meaning&&' - "'+e.meaning+'"')+")"} | ||
/** | ||
@@ -42,2 +42,2 @@ * @license | ||
* found in the LICENSE file at https://angular.io/license | ||
*/e.ɵcomputeMsgId=t.computeMsgId,e.clearTranslations=function h(){$localize.TRANSLATIONS={}},e.loadTranslations=function y(e){$localize.translate||($localize.translate=v),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(e).forEach(function(t){$localize.TRANSLATIONS[t]=d(e[t])})},e.ɵMissingTranslationError=f,e.ɵfindEndOfBlock=u,e.ɵisMissingTranslationError=function T(e){return"MissingTranslationError"===e.type},e.ɵmakeParsedTranslation=function b(e,t){return void 0===t&&(t=[]),{messageParts:g(e,e),placeholderNames:t}},e.ɵmakeTemplateObject=g,e.ɵparseMessage=s,e.ɵparseMetadata=l,e.ɵparseTranslation=d,e.ɵsplitBlock=c,e.ɵtranslate=p,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
*/Object.defineProperty(e,"ɵcomputeMsgId",{enumerable:!0,get:function(){return t.computeMsgId}}),e.clearTranslations=function h(){$localize.TRANSLATIONS={}},e.loadTranslations=function y(e){$localize.translate||($localize.translate=v),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(e).forEach((function(t){$localize.TRANSLATIONS[t]=d(e[t])}))},e.ɵMissingTranslationError=f,e.ɵfindEndOfBlock=u,e.ɵisMissingTranslationError=function b(e){return"MissingTranslationError"===e.type},e.ɵmakeParsedTranslation=function T(e,t){return void 0===t&&(t=[]),{messageParts:g(e,e),placeholderNames:t}},e.ɵmakeTemplateObject=g,e.ɵparseMessage=s,e.ɵparseMetadata=l,e.ɵparseTranslation=d,e.ɵsplitBlock=c,e.ɵtranslate=p,Object.defineProperty(e,"__esModule",{value:!0})})); |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
/** | ||
* @license Angular v9.0.0-rc.0 | ||
* @license Angular v9.0.0-rc.1 | ||
* (c) 2010-2019 Google LLC. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "@angular/localize", | ||
"version": "9.0.0-rc.0", | ||
"version": "9.0.0-rc.1", | ||
"description": "Angular - library for localizing messages", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/localize.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
750183
6290