Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-i18n

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-i18n - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

6

bower.json
{
"name": "ember-i18n",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"description": "I18n support for Ember.js",

@@ -8,4 +8,4 @@ "main": [ "lib/i18n.js" ],

"jquery": ">=1.7 <3",
"handlebars": "^1.0",
"ember": "^1.0"
"handlebars": ">=1.0 <3",
"ember": "~1"
},

@@ -12,0 +12,0 @@ "scripts": {

@@ -1,1 +0,1 @@

!function(a){function b(a){return a<<0===a}function c(a,b){for(var c=0;c<b.length;++c)if(b[c]===a)return!0;return!1}function d(a,b){for(var c=0;c<a.length;++c)l[a[c]]=b}function e(a,b){if(null==a)throw new Error("Ember.I18n.pluralForm requires a count");if(b=b||Ember.I18n.locale,null==b)throw new Error("Ember.I18n.pluralForm requires a language");if(b=b.replace(/^(\w\w\w?)-?.*/,"$1"),null==l[b])throw new Error("No pluralization information for "+b);return l[b].call(void 0,+a)}Ember.assert("i18n-plurals must be included after i18n.",null!=a.Ember.I18n);var f="zero",g="one",h="two",i="few",j="many",k="other",l={};d(["az","bm","my","zh","dz","ka","hu","ig","id","ja","jv","kea","kn","km","ko","ses","lo","kde","ms","fa","root","sah","sg","ii","th","bo","to","tr","vi","wo","yo"],function(){return k}),d(["gv"],function(a){return c(a%10,[1,2])||a%20===0?g:k}),d(["tzm"],function(a){return 0===a||1===a?g:b(a)&&a>=11&&99>=a?g:k}),d(["mk"],function(a){return a%10===1&&11!==a?g:k}),d(["fr","ff","kab"],function(a){return a>=0&&2>a?g:k}),d(["ak","am","bh","fil","guw","hi","ln","mg","nso","tl","ti","wa"],function(a){return 0===a||1===a?g:k}),d(["af","sq","eu","bem","bn","brx","bg","ca","chr","cgg","da","dv","nl","en","eo","et","ee","fo","fi","fur","gl","lg","de","el","gu","ha","haw","he","is","it","kl","kk","ku","lb","ml","mr","mas","mn","nah","ne","no","nb","nn","nyn","or","om","pap","ps","pt","pa","rm","ssy","saq","xog","so","es","sw","sv","gsw","syr","ta","te","tk","ur","wae","fy","zu"],function(a){return 1===a?g:k}),d(["lv"],function(a){return 0===a?f:a%10===1&&a%100!==11?g:k}),d(["ksh"],function(a){return 0===a?f:1===a?g:k}),d(["lag"],function(a){return 0===a?f:a>0&&2>a?g:k}),d(["kw","smn","iu","ga","smj","se","smi","sms","sma"],function(a){return 1===a?g:2===a?h:k}),d(["be","bs","hr","ru","sr","sh","uk"],function(a){var b=a%10,d=a%100;return 1===b&&a%100!==11?g:c(b,[2,3,4])&&!c(d,[12,13,14])?i:c(b,[0,5,6,7,8,9])||c(d,[11,12,13,14])?j:k}),d(["pl"],function(a){var b=a%10,d=a%100;return 1===a?g:c(b,[2,3,4])&&!c(d,[12,13,14])?i:c(b,[0,1,5,6,7,8,9])||c(d,[12,13,14])?j:k}),d(["lt"],function(a){var c=a%10,d=a%100;return 1===c&&11!==d?g:b(a)&&c>=2&&9>=c&&d>=12&&19>=d?i:k}),d(["shi"],function(a){return a>=0&&1>=a?g:b(a)&&a>=2&&9>=a?i:k}),d(["mo","ro"],function(a){var c=a%100;return 1===a?g:0===a||b(a)&&c>=1&&19>=c?i:k}),d(["cs","sk"],function(a){return 1===a?g:c(a,[2,3,4])?i:k}),d(["sl"],function(a){var b=a%100;return 1===b?g:2===b?h:3===b||4===b?i:k}),d(["mt"],function(a){if(1===a)return g;var c=a%100;return b(c)&&c>=2&&10>=c?i:b(c)&&c>=11&&19>=c?j:k}),d(["ar"],function(a){if(0===a)return f;if(1===a)return g;if(2===a)return h;var c=a%100;return b(c)&&c>=3&&10>=c?i:b(c)&&c>=11&&99>=c?j:k}),d(["br","cy"],function(a){switch(a){case 0:return f;case 1:return g;case 2:return h;case 3:return i;case 6:return j;default:return k}}),e.Zero=f,e.One=g,e.Two=h,e.Few=i,e.Many=j,e.Other=k,Ember.I18n.pluralForm=e}(this);
!function(a){function b(a){return a<<0===a}function c(a,b){for(var c=0;c<b.length;++c)if(b[c]===a)return!0;return!1}function d(a,b){for(var c=0;c<a.length;++c)l[a[c]]=b}function e(a,b){if(null==a)throw new Error("Ember.I18n.pluralForm requires a count");if(b=b||Ember.I18n.locale,null==b)throw new Error("Ember.I18n.pluralForm requires a language");if(b=b.replace(/^(\w\w\w?)-?.*/,"$1"),null==l[b])throw new Error("No pluralization information for "+b);return l[b].call(void 0,+a)}Ember.assert("i18n-plurals must be included after i18n.",null!=a.Ember.I18n);var f="zero",g="one",h="two",i="few",j="many",k="other",l={};d(["az","bm","my","zh","dz","ka","hu","ig","id","ja","jv","kea","kn","km","ko","ses","lo","kde","ms","fa","root","sah","sg","ii","th","bo","to","tr","vi","wo","yo"],function(){return k}),d(["gv"],function(a){return c(a%10,[1,2])||a%20===0?g:k}),d(["tzm"],function(a){return 0===a||1===a?g:b(a)&&a>=11&&99>=a?g:k}),d(["mk"],function(a){return a%10===1&&11!==a?g:k}),d(["fr","ff","kab"],function(a){return a>=0&&2>a?g:k}),d(["ak","am","bh","fil","guw","hi","ln","mg","nso","tl","ti","wa"],function(a){return 0===a||1===a?g:k}),d(["af","sq","eu","bem","bn","brx","bg","ca","chr","cgg","da","dv","nl","en","eo","et","ee","fo","fi","fur","gl","lg","de","el","gu","ha","haw","he","is","it","kl","kk","ku","lb","ml","mr","mas","mn","nah","ne","no","nb","nn","nyn","or","om","pap","ps","pt","pa","rm","ssy","saq","xog","so","es","sw","sv","gsw","syr","ta","te","tk","ur","wae","fy","zu"],function(a){return 1===a?g:k}),d(["lv"],function(a){return 0===a?f:a%10===1&&a%100!==11?g:k}),d(["ksh"],function(a){return 0===a?f:1===a?g:k}),d(["lag"],function(a){return 0===a?f:a>0&&2>a?g:k}),d(["kw","smn","iu","ga","smj","se","smi","sms","sma"],function(a){return 1===a?g:2===a?h:k}),d(["be","bs","hr","ru","sr","sh","uk"],function(a){var b=a%10,d=a%100;return 1===b&&a%100!==11?g:c(b,[2,3,4])&&!c(d,[12,13,14])?i:c(b,[0,5,6,7,8,9])||c(d,[11,12,13,14])?j:k}),d(["pl"],function(a){var b=a%10,d=a%100;return 1===a?g:c(b,[2,3,4])&&!c(d,[12,13,14])?i:c(b,[0,1,5,6,7,8,9])||c(d,[12,13,14])?j:k}),d(["lt"],function(a){var c=a%10,d=a%100;return 1===c&&11!==d?g:b(a)&&c>=2&&9>=c&&d>=12&&19>=d?i:k}),d(["shi"],function(a){return a>=0&&1>=a?g:b(a)&&a>=2&&9>=a?i:k}),d(["mo","ro"],function(a){var c=a%100;return 1===a?g:0===a||b(a)&&c>=1&&19>=c?i:k}),d(["cs","sk"],function(a){return 1===a?g:c(a,[2,3,4])?i:k}),d(["sl"],function(a){var b=a%100;return 1===b?g:2===b?h:3===b||4===b?i:k}),d(["mt"],function(a){if(1===a)return g;var c=a%100;return b(c)&&c>=2&&10>=c?i:b(c)&&c>=11&&19>=c?j:k}),d(["ar"],function(a){if(0===a)return f;if(1===a)return g;if(2===a)return h;var c=a%100;return b(c)&&c>=3&&10>=c?i:b(c)&&c>=11&&99>=c?j:k}),d(["br","cy"],function(a){switch(a){case 0:return f;case 1:return g;case 2:return h;case 3:return i;case 6:return j;default:return k}}),e.Zero=f,e.One=g,e.Two=h,e.Few=i,e.Many=j,e.Other=k,Ember.I18n.pluralForm=e}(this);

@@ -1,1 +0,1 @@

(function(a){function b(a,b){var c,e=/(.+)Translation$/;for(var f in a)if(c=f.match(e)){var g=null==a[f]?null:d.t(a[f]);b.call(a,c[1],g)}}function c(a){return function(b){return a.replace(/\{\{(.*?)\}\}/g,function(a,c){return b[c]})}}var d,e,f,g,h,i,j,k,l;j=a.Handlebars,k=Ember.Handlebars,g=Ember.get,h=Ember.set,e=Ember.assert,i=function(a,b){var c,d,e;return null!=b[a]?b[a]:-1!==(d=a.indexOf("."))&&(c=a.substr(0,d),e=a.substr(d+1),b=b[c])?i(e,b):void 0},f=function(a,b){e("You must provide a translation key string, not %@".fmt(a),"string"==typeof a);var c=i(a,d.translations);return b&&null==c&&(c=d.translations[a]=function(){return d.missingMessage(a)},c._isMissing=!0,d.trigger("missing",a)),null==c||Ember.$.isFunction(c)||(c=d.translations[a]=d.compile(c)),c},l=function(a){var b=i(a,d.translations);return null!=b&&!b._isMissing},d=Ember.Evented.apply({pluralForm:void 0,compile:c,translations:{},eachTranslatedAttribute:b,template:function(a,b){var c,e,g;return null!=b&&null!=d.pluralForm&&(g=d.pluralForm(b),c="%@.%@".fmt(a,g),e=f(c,!1)),null!=e?e:e=f(a,!0)},t:function(a,b){var c;return null==b&&(b={}),(c=d.template(a,g(b,"count")))(b)},exists:l,missingMessage:function(a){return"Missing translation: "+a},TranslateableProperties:Ember.Mixin.create({init:function(){var a=this._super.apply(this,arguments);return b(this,function(a,b){this.addObserver(a+"Translation",this,function(){h(this,a,d.t(this.get(a+"Translation")))}),h(this,a,b)}),a}}),TranslateableAttributes:Ember.Mixin.create({didInsertElement:function(){var a=this._super.apply(this,arguments);return b(this,function(a,b){this.$().attr(a,b)}),a}})}),Ember.I18n=d,k.registerBoundHelper("t",function(a,b){return new j.SafeString(d.t(a,b.hash))});var m=function(a){var b,c;return b=a.hash,c=[],Ember.keys(b).forEach(function(a){var e;return e=d.t(b[a]),c.push('%@="%@"'.fmt(a,e))}),new k.SafeString(c.join(" "))};k.registerHelper("translateAttr",m),k.registerHelper("ta",m)}).call(void 0,this);
(function(a){function b(a,b){var c,e=/(.+)Translation$/;for(var f in a)if(c=f.match(e)){var g=null==a[f]?null:d.t(a[f]);b.call(a,c[1],g)}}function c(a){return function(b){return a.replace(/\{\{(.*?)\}\}/g,function(a,c){return b[c]})}}var d,e,f,g,h,i,j,k,l;j=a.Handlebars,k=Ember.Handlebars,g=Ember.get,h=Ember.set,e=Ember.assert,i=function(a,b){var c,d,e;return null!=b[a]?b[a]:-1!==(d=a.indexOf("."))&&(c=a.substr(0,d),e=a.substr(d+1),b=b[c])?i(e,b):void 0},f=function(a,b){e("You must provide a translation key string, not %@".fmt(a),"string"==typeof a);var c=i(a,d.translations);return b&&null==c&&(c=d.translations[a]=function(){return d.missingMessage(a)},c._isMissing=!0,d.trigger("missing",a)),null==c||Ember.$.isFunction(c)||(c=d.translations[a]=d.compile(c)),c},l=function(a){var b=i(a,d.translations);return null!=b&&!b._isMissing},d=Ember.Evented.apply({pluralForm:void 0,compile:c,translations:{},eachTranslatedAttribute:b,template:function(a,b){var c,e,g;return null!=b&&null!=d.pluralForm&&(g=d.pluralForm(b),c="%@.%@".fmt(a,g),e=f(c,!1)),null!=e?e:e=f(a,!0)},t:function(a,b){var c;return null==b&&(b={}),(c=d.template(a,g(b,"count")))(b)},exists:l,missingMessage:function(a){return"Missing translation: "+a},TranslateableProperties:Ember.Mixin.create({init:function(){var a=this._super.apply(this,arguments);return b(this,function(a,b){this.addObserver(a+"Translation",this,function(){h(this,a,d.t(this.get(a+"Translation")))}),h(this,a,b)}),a}}),TranslateableAttributes:Ember.Mixin.create({didInsertElement:function(){var a=this._super.apply(this,arguments);return b(this,function(a,b){this.$().attr(a,b)}),a}})}),Ember.I18n=d,k.registerBoundHelper("t",function(a,b){return new j.SafeString(d.t(a,b.hash))});var m=function(a){var b,c;return b=a.hash,c=[],Ember.keys(b).forEach(function(a){var e;return e=d.t(b[a]),c.push('%@="%@"'.fmt(a,e))}),new k.SafeString(c.join(" "))};k.registerHelper("translateAttr",m),k.registerHelper("ta",m)}).call(void 0,this);
{
"name": "ember-i18n",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"licence": "APLv2",

@@ -5,0 +5,0 @@ "description": "Internationalization for Ember",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc