@angular/localize
Version:
Angular - library for localizing messages
27 lines • 1.6 kB
JavaScript
/**
* @license Angular v10.1.0-next.7
* (c) 2010-2020 Google LLC. https://angular.io/
* License: MIT
*/
!function(e){"function"==typeof define&&define.amd?define("@angular/localize/init",e):e()}((function(){"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var e="undefined"!=typeof globalThis&&globalThis,n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,t="undefined"!=typeof global&&global,i=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(i.translate){var t=i.translate(e,n);e=t[0],n=t[1]}for(var f=r(e[0],e.raw[0]),a=1;a<e.length;a++)f+=n[a-1]+r(e[a],e.raw[a]);return f};function r(e,n){return":"===n.charAt(0)?e.substring(function o(e,n){for(var o=1,t=1;o<e.length;o++,t++)if("\\"===n[t])t++;else if(":"===e[o])return o;throw new Error('Unterminated $localize metadata block in "'+n+'".')}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(e,n)+1):e}(e||t||n||o).$localize=i}));