From 8da5d6e80523f37052b4363339bc6b78ce0e36cc Mon Sep 17 00:00:00 2001 From: Rahul Doshi Date: Wed, 4 Jun 2014 20:10:08 -0700 Subject: [PATCH] fix(version): correct module instantiation --- dist/angular-localization.js | 2 +- dist/angular-localization.min.js | 2 +- dist/angular-localization.min.js.gzip | Bin 2068 -> 2068 bytes dist/angular-localization.min.map | 2 +- src/localization.version.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/angular-localization.js b/dist/angular-localization.js index 4d6e1fd..2b93afe 100644 --- a/dist/angular-localization.js +++ b/dist/angular-localization.js @@ -388,5 +388,5 @@ angular.module('ngLocalize.InstalledLanguages', []) .value('localeFallbacks', { 'en': 'en-US' }); -angular.module('ngLocalize.Version') +angular.module('ngLocalize.Version', []) .constant('localeVer', 'v1.0.0'); \ No newline at end of file diff --git a/dist/angular-localization.min.js b/dist/angular-localization.min.js index 9ae02d2..3e0a067 100644 --- a/dist/angular-localization.min.js +++ b/dist/angular-localization.min.js @@ -6,5 +6,5 @@ * License: MIT */ -angular.module("ngLocalize.Config",[]).value("localeConf",{basePath:"languages",defaultLocale:"en-US",sharedDictionary:"common",fileExtension:".lang.json",persistSelection:!0,cookieName:"COOKIE_LOCALE_LANG",observableAttrs:new RegExp("^data-(?!ng-|i18n)"),delimiter:"::"}),angular.module("ngLocalize.Events",[]).constant("localeEvents",{resourceUpdates:"ngLocalizeResourcesUpdated",localeChanges:"ngLocalizeLocaleChanged"}),angular.module("ngLocalize",["ngCookies","ngLocalize.Config","ngLocalize.Events","ngLocalize.InstalledLanguages"]).service("locale",["$http","$q","$log","$rootScope","$window","$cookieStore","localeConf","localeEvents","localeSupported","localeFallbacks",function(a,b,c,d,e,f,g,h,i,j){"use strict";function k(a){return a&&a.length&&new RegExp("^[\\w\\.-]+\\.[\\w\\.-]+\\w(:.*)?$").test(a)}function l(a){var b=a?a.split("."):"",c="";return b.length>1&&(c=b.slice(0,-1).join(".")),c}function m(a){var b=a?a.split("."):[],c="";return b.length&&(c=b[b.length-1]),c}function n(a){var b,c=null,d=a?a.split("."):[];if(d.length>1)for(c=x,b=0;b1){for(e=0;e1?(e=[],c.forEach(function(a){e.push(p(a))}),d=b.all(e)):d=p(a),d}function r(a,b){var c=a,d=0;return b&&(angular.isArray(b)?angular.forEach(b,function(a,b){c=c.replace("%"+(b+1),a),c=c.replace("{"+(b+1)+"}",a)}):angular.forEach(b,function(a,b){++d,c=c.replace("{"+b+"}",a),c=c.replace("%"+b,a),c=c.replace("%"+d,a),c=c.replace("{"+d+"}",a)})),c=c.replace(/\n/g,"
")}function s(a,b){var d,e,f,h="",i=!1;return angular.isString(a)&&!b&&-1!=a.indexOf(g.delimiter)&&(f=a.split(g.delimiter),a=f[0],b=angular.fromJson(f[1])),i=k(a),i?(angular.isObject(b)||(b=[b]),d=n(a),d&&!d._loading?(e=m(a),d[e]?h=r(d[e],b):(c.info("[localizationService] Key not found: "+a),h="%%KEY_NOT_FOUND%%")):d||o(a)):h=a,h}function t(a){var b=-1!=i.indexOf(a)?a:j[a.split("-")[0]]||g.defaultLocale;b!=v&&(x={},w={},v=b,d.$broadcast(h.localeChanges,v),d.$broadcast(h.resourceUpdates),g.persistSelection&&f.put(g.cookieName,b))}function u(){return v}var v,w,x;return t(f.get(g.cookieName)||e.navigator.userLanguage||e.navigator.language),{ready:q,isToken:k,getPath:l,getKey:m,setLocale:t,getLocale:u,getString:s}}]).filter("i18n",["locale",function(a){"use strict";return function(b,c){return a.getString(b,c)}}]).directive("i18n",["locale","localeEvents","localeConf",function(a,b,c){"use strict";function d(b,c,d){var e="";a.ready(a.getPath(c)).then(function(){e=a.getString(c,d),e!==b.text()&&b.text(e)})}return function(a,e,f){var g;f.$observe("i18n",function(a,b){a&&a!=b&&d(e,a,g)}),angular.forEach(f.$attr,function(a,b){c.observableAttrs.test(a)&&f.$observe(b,function(a,c){(a&&a!=c||!g||!g[b])&&(g=g||{},g[b]=f[b],d(e,f.i18n,g))})}),a.$on(b.resourceUpdates,function(){d(e,f.i18n,g)}),a.$on(b.localeChanges,function(){d(e,f.i18n,g)})}}]).directive("i18nAttr",["locale","localeEvents",function(a,b){"use strict";return function(c,d,e){function f(b,d){var f,h=c.$eval(d),i=[];for(var j in h)f=h[j],a.isToken(f)&&-1==i.indexOf(a.getPath(f))&&i.push(a.getPath(f));a.ready(i).then(function(){var b="";for(var c in h)f=h[c],b=a.getString(f),g[c]!==b&&e.$set(c,g[c]=b)})}var g={};e.$observe("i18nAttr",function(a,b){a&&a!=b&&f(d,a)}),c.$on(b.resourceUpdates,function(){f(d,e.i18nAttr)}),c.$on(b.localeChanges,function(){f(d,e.i18nAttr)})}}]),angular.module("ngLocalize.InstalledLanguages",[]).value("localeSupported",["en-US"]).value("localeFallbacks",{en:"en-US"}),angular.module("ngLocalize.Version").constant("localeVer","v1.0.0"); +angular.module("ngLocalize.Config",[]).value("localeConf",{basePath:"languages",defaultLocale:"en-US",sharedDictionary:"common",fileExtension:".lang.json",persistSelection:!0,cookieName:"COOKIE_LOCALE_LANG",observableAttrs:new RegExp("^data-(?!ng-|i18n)"),delimiter:"::"}),angular.module("ngLocalize.Events",[]).constant("localeEvents",{resourceUpdates:"ngLocalizeResourcesUpdated",localeChanges:"ngLocalizeLocaleChanged"}),angular.module("ngLocalize",["ngCookies","ngLocalize.Config","ngLocalize.Events","ngLocalize.InstalledLanguages"]).service("locale",["$http","$q","$log","$rootScope","$window","$cookieStore","localeConf","localeEvents","localeSupported","localeFallbacks",function(a,b,c,d,e,f,g,h,i,j){"use strict";function k(a){return a&&a.length&&new RegExp("^[\\w\\.-]+\\.[\\w\\.-]+\\w(:.*)?$").test(a)}function l(a){var b=a?a.split("."):"",c="";return b.length>1&&(c=b.slice(0,-1).join(".")),c}function m(a){var b=a?a.split("."):[],c="";return b.length&&(c=b[b.length-1]),c}function n(a){var b,c=null,d=a?a.split("."):[];if(d.length>1)for(c=x,b=0;b1){for(e=0;e1?(e=[],c.forEach(function(a){e.push(p(a))}),d=b.all(e)):d=p(a),d}function r(a,b){var c=a,d=0;return b&&(angular.isArray(b)?angular.forEach(b,function(a,b){c=c.replace("%"+(b+1),a),c=c.replace("{"+(b+1)+"}",a)}):angular.forEach(b,function(a,b){++d,c=c.replace("{"+b+"}",a),c=c.replace("%"+b,a),c=c.replace("%"+d,a),c=c.replace("{"+d+"}",a)})),c=c.replace(/\n/g,"
")}function s(a,b){var d,e,f,h="",i=!1;return angular.isString(a)&&!b&&-1!=a.indexOf(g.delimiter)&&(f=a.split(g.delimiter),a=f[0],b=angular.fromJson(f[1])),i=k(a),i?(angular.isObject(b)||(b=[b]),d=n(a),d&&!d._loading?(e=m(a),d[e]?h=r(d[e],b):(c.info("[localizationService] Key not found: "+a),h="%%KEY_NOT_FOUND%%")):d||o(a)):h=a,h}function t(a){var b=-1!=i.indexOf(a)?a:j[a.split("-")[0]]||g.defaultLocale;b!=v&&(x={},w={},v=b,d.$broadcast(h.localeChanges,v),d.$broadcast(h.resourceUpdates),g.persistSelection&&f.put(g.cookieName,b))}function u(){return v}var v,w,x;return t(f.get(g.cookieName)||e.navigator.userLanguage||e.navigator.language),{ready:q,isToken:k,getPath:l,getKey:m,setLocale:t,getLocale:u,getString:s}}]).filter("i18n",["locale",function(a){"use strict";return function(b,c){return a.getString(b,c)}}]).directive("i18n",["locale","localeEvents","localeConf",function(a,b,c){"use strict";function d(b,c,d){var e="";a.ready(a.getPath(c)).then(function(){e=a.getString(c,d),e!==b.text()&&b.text(e)})}return function(a,e,f){var g;f.$observe("i18n",function(a,b){a&&a!=b&&d(e,a,g)}),angular.forEach(f.$attr,function(a,b){c.observableAttrs.test(a)&&f.$observe(b,function(a,c){(a&&a!=c||!g||!g[b])&&(g=g||{},g[b]=f[b],d(e,f.i18n,g))})}),a.$on(b.resourceUpdates,function(){d(e,f.i18n,g)}),a.$on(b.localeChanges,function(){d(e,f.i18n,g)})}}]).directive("i18nAttr",["locale","localeEvents",function(a,b){"use strict";return function(c,d,e){function f(b,d){var f,h=c.$eval(d),i=[];for(var j in h)f=h[j],a.isToken(f)&&-1==i.indexOf(a.getPath(f))&&i.push(a.getPath(f));a.ready(i).then(function(){var b="";for(var c in h)f=h[c],b=a.getString(f),g[c]!==b&&e.$set(c,g[c]=b)})}var g={};e.$observe("i18nAttr",function(a,b){a&&a!=b&&f(d,a)}),c.$on(b.resourceUpdates,function(){f(d,e.i18nAttr)}),c.$on(b.localeChanges,function(){f(d,e.i18nAttr)})}}]),angular.module("ngLocalize.InstalledLanguages",[]).value("localeSupported",["en-US"]).value("localeFallbacks",{en:"en-US"}),angular.module("ngLocalize.Version",[]).constant("localeVer","v1.0.0"); //# sourceMappingURL=angular-localization.min.map \ No newline at end of file diff --git a/dist/angular-localization.min.js.gzip b/dist/angular-localization.min.js.gzip index e9da0088551addde4d2f96cdef59f4a92e7f8b3a..11b092d7a2e939b487b48176f7c7cb8847685046 100644 GIT binary patch delta 2041 zcmVH|CBQc_q=NlGV^n zvS6Jit93qnO(eF`?#pETl!ktgYr10;lC@{;n+!IQ_5lJyT5}ybD$bOt{rTxT-iL4A zR072+aW|3DS?phz)+%wC#9rt#e?DIrVk@H!W{Z<3nqYiy%S?Thd0?`Lq)1<7jJwK{ znFWM^cKQAqfA7Ei!FXb4D&0yuQt$ITf6dHT?X+*o zzj|Ej?7yzeTF=(lPrE9YFsD}M%1db+gq-(@l3{*a)ihJDW0T21o z*t1Qhv@B17FE*){Y7e?J5RQD4#+vN)q=;1P=RvP`0*d+F-R|yAe+(9V{I*|qx+&fo z(=Iav;+R9&p%ERC=&ejO+mcf$vUL;!34$3WW8ASAn^b!3O6l+8UQc%{TVxTrbi@Z^ zLoAapE_NB*Im%xBRQ7!Fs_atoyjC?BFHYpejXdm*H&MjhbED^rN$BZrW2@mMDXe|u zwl$jA@9K%ccw+baf5skbJI>sl+lz&in&9CAwYu4572^DO_>l zwGir-mM>~n>9Zm0Z^Ghzo2$j*`B|@?tUZ!Bw5m70>{}#| z7EMBNA0^TaW1p5cFBbR(%Y1RdNn8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