mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-17 05:41:16 +01:00
7 lines
1.2 KiB
JavaScript
7 lines
1.2 KiB
JavaScript
/*!
|
|
* 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"});
|