LocalCDN-Firefox-Chrome-Brave/resources/angular-translate/2.7.2/angular-translate-interpola...

7 lines
1.2 KiB
JavaScript
Raw Normal View History

/*!
* angular-translate - v2.7.2 - 2015-06-01
* http://github.com/angular-translate/angular-translate
* Copyright (c) 2015 ; Licensed MIT
*/
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof exports?module.exports=b():b()}(this,function(){function a(a,b,c){"use strict";var d={},e=b.get(c),f=new MessageFormat("en"),g="messageformat";return e||(e=b(c)),e.put("en",f),d.setLocale=function(a){f=e.get(a),f||(f=new MessageFormat(a),e.put(a,f))},d.getInterpolationIdentifier=function(){return g},d.useSanitizeValueStrategy=function(b){return a.useStrategy(b),this},d.interpolate=function(b,c){c=c||{},c=a.sanitize(c,"params");var d=e.get(b+angular.toJson(c));if(!d){for(var g in c)if(c.hasOwnProperty(g)){var h=parseInt(c[g],10);angular.isNumber(h)&&""+h===c[g]&&(c[g]=h)}d=f.compile(b)(c),d=a.sanitize(d,"text"),e.put(b+angular.toJson(c),d)}return d},d}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").factory("$translateMessageFormatInterpolation",a),a.$inject=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE"],a.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"});