diff --git a/component.json b/component.json index 8c7da70e2..671dc9f57 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,14 @@ { "name": "i18next", - "version": "1.5.7", - "main": "./release/i18next-1.5.7.js", - "dependencies": {} + "version": "1.5.10", + "main": "./release/i18next-1.5.10.js", + "dependencies": {}, + "ignore": [ + "tests/", + "spec/", + "src/", + "sample/", + "report/", + "buildtasks/" + ] } \ No newline at end of file diff --git a/release/i18next-1.5.11pre.zip b/release/i18next-1.5.11pre.zip index e94ad2a29..0f7243dc6 100644 Binary files a/release/i18next-1.5.11pre.zip and b/release/i18next-1.5.11pre.zip differ diff --git a/release/i18next.amd-1.5.11pre.zip b/release/i18next.amd-1.5.11pre.zip index 46f0349fd..0ddaa7ec8 100644 Binary files a/release/i18next.amd-1.5.11pre.zip and b/release/i18next.amd-1.5.11pre.zip differ diff --git a/spec/functions.translation.spec.js b/spec/functions.translation.spec.js index 1aa935588..6d31957dc 100644 --- a/spec/functions.translation.spec.js +++ b/spec/functions.translation.spec.js @@ -111,6 +111,23 @@ describe('translation functionality', function() { it('it should apply nested value on defaultValue', function() { expect(i18n.t('nesting_default', {defaultValue: '0 $t(nesting1)'})).to.be('0 1 2 3'); }); + + // describe('with setting new options', function() { + // var resStore = { + // dev: { translation: { nesting1_plural: '$t(nesting2, {"count": {girls}}) and {count} boys' } }, + // en: { translation: { nesting2_plural: '{count} girls' } } + // }; + + // beforeEach(function(done) { + // i18n.init( $.extend(opts, { resStore: resStore }), + // function(t) { done(); }); + // }); + + // it('it should translate nested value and set new options', function() { + // expect(i18n.t('nesting1', {count: 2, girls: 3})).to.be('3 girls and 2 boys'); + // }); + // }); + }); describe('interpolation - replacing values inside a string', function() { diff --git a/test/test.js b/test/test.js index 79121bf82..56f037465 100644 --- a/test/test.js +++ b/test/test.js @@ -791,6 +791,23 @@ describe('i18next', function() { it('it should apply nested value on defaultValue', function() { expect(i18n.t('nesting_default', {defaultValue: '0 $t(nesting1)'})).to.be('0 1 2 3'); }); + + // describe('with setting new options', function() { + // var resStore = { + // dev: { translation: { nesting1_plural: '$t(nesting2, {"count": {girls}}) and {count} boys' } }, + // en: { translation: { nesting2_plural: '{count} girls' } } + // }; + + // beforeEach(function(done) { + // i18n.init( $.extend(opts, { resStore: resStore }), + // function(t) { done(); }); + // }); + + // it('it should translate nested value and set new options', function() { + // expect(i18n.t('nesting1', {count: 2, girls: 3})).to.be('3 girls and 2 boys'); + // }); + // }); + }); describe('interpolation - replacing values inside a string', function() {