Skip to content

Commit

Permalink
updated component.js to v1.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Feb 11, 2013
2 parents 9383a2a + 42c57a1 commit b0006a8
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
14 changes: 11 additions & 3 deletions 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/"
]
}
Binary file modified release/i18next-1.5.11pre.zip
Binary file not shown.
Binary file modified release/i18next.amd-1.5.11pre.zip
Binary file not shown.
17 changes: 17 additions & 0 deletions spec/functions.translation.spec.js
Expand Up @@ -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() {
Expand Down
17 changes: 17 additions & 0 deletions test/test.js
Expand Up @@ -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() {
Expand Down

0 comments on commit b0006a8

Please sign in to comment.