Skip to content

Commit

Permalink
fix(lint): fixes linter issues and adds build
Browse files Browse the repository at this point in the history
adds built files and fixes linter issues
  • Loading branch information
zewa666 committed Dec 9, 2015
1 parent 2fba7fb commit 1f60c4f
Show file tree
Hide file tree
Showing 16 changed files with 2,246 additions and 28,278 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "aurelia-i18n",
"version": "0.4.2",
"version": "0.4.3",
"description": "A plugin that provides i18n support.",
"keywords": [
"aurelia",
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/i18n.js
@@ -1,4 +1,4 @@
define(['exports', 'i18next', './utils'], function (exports, _i18next, _utils) {
define(['exports', 'i18next'], function (exports, _i18next) {
'use strict';

exports.__esModule = true;
Expand Down Expand Up @@ -80,7 +80,7 @@ define(['exports', 'i18next', './utils'], function (exports, _i18next, _utils) {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, _utils.assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
};

I18N.prototype.registerGlobalVariable = function registerGlobalVariable(key, value) {
Expand Down
4 changes: 3 additions & 1 deletion dist/amd/utils.js
Expand Up @@ -8,7 +8,9 @@ define(['exports', 'aurelia-dependency-injection'], function (exports, _aureliaD
var extend = function extend(destination, source) {
for (var property in source) {
destination[property] = source[property];
}return destination;
}

return destination;
};

exports.extend = extend;
Expand Down
6 changes: 4 additions & 2 deletions dist/aurelia-i18n.js
Expand Up @@ -237,8 +237,10 @@ export const translations = {
};

export let extend = (destination, source) => {
for (let property in source)
for (let property in source) {
destination[property] = source[property];
}

return destination;
};

Expand Down Expand Up @@ -351,7 +353,7 @@ export class I18N {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
}

registerGlobalVariable(key, value) {
Expand Down
4 changes: 1 addition & 3 deletions dist/commonjs/i18n.js
Expand Up @@ -10,8 +10,6 @@ var _i18next = require('i18next');

var _i18next2 = _interopRequireDefault(_i18next);

var _utils = require('./utils');

var I18N = (function () {
function I18N(ea, loader, signaler) {
_classCallCheck(this, I18N);
Expand Down Expand Up @@ -83,7 +81,7 @@ var I18N = (function () {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, _utils.assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
};

I18N.prototype.registerGlobalVariable = function registerGlobalVariable(key, value) {
Expand Down
4 changes: 3 additions & 1 deletion dist/commonjs/utils.js
Expand Up @@ -9,7 +9,9 @@ var _aureliaDependencyInjection = require('aurelia-dependency-injection');
var extend = function extend(destination, source) {
for (var property in source) {
destination[property] = source[property];
}return destination;
}

return destination;
};

exports.extend = extend;
Expand Down
3 changes: 1 addition & 2 deletions dist/es6/i18n.js
@@ -1,6 +1,5 @@
/*eslint no-cond-assign: 0*/
import i18n from 'i18next';
import {assignObjectToKeys} from './utils';

export class I18N {

Expand Down Expand Up @@ -72,7 +71,7 @@ export class I18N {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
}

registerGlobalVariable(key, value) {
Expand Down
4 changes: 3 additions & 1 deletion dist/es6/utils.js
@@ -1,8 +1,10 @@
import {resolver} from 'aurelia-dependency-injection';

export let extend = (destination, source) => {
for (let property in source)
for (let property in source) {
destination[property] = source[property];
}

return destination;
};

Expand Down
8 changes: 3 additions & 5 deletions dist/system/i18n.js
@@ -1,15 +1,13 @@
System.register(['i18next', './utils'], function (_export) {
System.register(['i18next'], function (_export) {
'use strict';

var i18n, assignObjectToKeys, I18N;
var i18n, I18N;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

return {
setters: [function (_i18next) {
i18n = _i18next['default'];
}, function (_utils) {
assignObjectToKeys = _utils.assignObjectToKeys;
}],
execute: function () {
I18N = (function () {
Expand Down Expand Up @@ -83,7 +81,7 @@ System.register(['i18next', './utils'], function (_export) {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
};

I18N.prototype.registerGlobalVariable = function registerGlobalVariable(key, value) {
Expand Down
4 changes: 3 additions & 1 deletion dist/system/utils.js
Expand Up @@ -13,7 +13,9 @@ System.register(['aurelia-dependency-injection'], function (_export) {
extend = function extend(destination, source) {
for (var property in source) {
destination[property] = source[property];
}return destination;
}

return destination;
};

_export('extend', extend);
Expand Down
6 changes: 4 additions & 2 deletions dist/temp/aurelia-i18n.js
Expand Up @@ -257,7 +257,9 @@ exports.translations = translations;
var extend = function extend(destination, source) {
for (var property in source) {
destination[property] = source[property];
}return destination;
}

return destination;
};

exports.extend = extend;
Expand Down Expand Up @@ -381,7 +383,7 @@ var I18N = (function () {
fullOptions = Object.assign(Object.assign({}, this.globalVars), options);
}

return this.i18next.t(key, assignObjectToKeys('', fullOptions));
return this.i18next.t(key, fullOptions);
};

I18N.prototype.registerGlobalVariable = function registerGlobalVariable(key, value) {
Expand Down
32 changes: 32 additions & 0 deletions doc/CHANGELOG.md
@@ -1,3 +1,35 @@
### 0.4.3 (2015-12-09)


#### Bug Fixes

* **Intl:** fix Intl.js polyfill loading ([de20e1b1](http://github.com/aurelia/i18n/commit/de20e1b11846ef79dbc02de0eb0f068c57ae4906))
* **all:**
* add missing dependencies ([73370c8f](http://github.com/aurelia/i18n/commit/73370c8fb75cf1e024fd6c22c616752c1b4a11a3))
* update to latest templating engine and DI ([a49941af](http://github.com/aurelia/i18n/commit/a49941af8eef97998f5d1a1299ba6880ad7af85d))
* **attribute:**
* t attribute update on locale change ([ecdfeb28](http://github.com/aurelia/i18n/commit/ecdfeb281032ce35fc35e981314b2c13e1a9b84b))
* fix null check ([f14e4cc0](http://github.com/aurelia/i18n/commit/f14e4cc03eb5e3683659f7fca94d9200c70a5a8b))
* **attributes:**
* register default i18n attributes ([bab353cc](http://github.com/aurelia/i18n/commit/bab353cc34851a5e148c3815eddc34e4a9ffda80))
* register default i18n attributes ([8dcb9785](http://github.com/aurelia/i18n/commit/8dcb97852129a7e8111d3844d4bf41b5ca020769))
* allow omitting attributes in options ([1febda9e](http://github.com/aurelia/i18n/commit/1febda9e3dc13dcd3e36c9de7d2204e8e122a551))
* **build:** removes babel runtime ([10566453](http://github.com/aurelia/i18n/commit/1056645358a03acc4ce3b0990996bf41c439794d))
* **eslint:** comply with linting rules ([528ec668](http://github.com/aurelia/i18n/commit/528ec66897289824f1008b0fdc9c2fbed1a4698a))
* **event-aggregator:** dispose ea subscriptions correctly ([c387adbf](http://github.com/aurelia/i18n/commit/c387adbf4d41957bb06f64104c1073bca4507c9a))
* **nf:** fixes nfvalueconverter with null||undefined options ([ff9ce638](http://github.com/aurelia/i18n/commit/ff9ce638d3d8f8888ca4ed6738664fa200ea8cbc))
* **resolver:** custom params resolver ([8c6a0b58](http://github.com/aurelia/i18n/commit/8c6a0b58b091346d87f97c326810eb1e19471dfd))
* **subscription:** fix subscription disposal ([b9896be4](http://github.com/aurelia/i18n/commit/b9896be48109a0af6d06ed4f5c6e31f337f596b6))
* **tests:** fix unit tests ([203a3ce6](http://github.com/aurelia/i18n/commit/203a3ce63db9f3c912b732d9473e17ce001e3726))
* **tr:** fixes object flattening ([2fba7fbb](http://github.com/aurelia/i18n/commit/2fba7fbb589b4b2e6cfe1216ebc57b6e4eb3cbdf))


#### Features

* **params:** params for attribute based translation ([138193aa](http://github.com/aurelia/i18n/commit/138193aab876d2bd89de06c971a213ea6dae8d6a))
* **signaling:** provides TBindingBehavior ([d9877eea](http://github.com/aurelia/i18n/commit/d9877eea7f5de73e75f5fa00a6c39a8613ce40ab))


### 0.4.1 (2015-11-16)


Expand Down

0 comments on commit 1f60c4f

Please sign in to comment.