Comparing version 1.3.2 to 1.3.3
@@ -155,3 +155,3 @@ (function() { | ||
res.send('OK'); | ||
res.json('ok'); | ||
}); | ||
@@ -172,3 +172,3 @@ | ||
res.send('OK'); | ||
res.json('ok'); | ||
}); | ||
@@ -175,0 +175,0 @@ |
@@ -178,3 +178,2 @@ (function() { | ||
self.functions.extend(self.resStore, fetched); | ||
cb(err, self.resStore); | ||
@@ -181,0 +180,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"description": "i18n made easy - full featured: middleware, template support plus clientside use", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -5,2 +5,59 @@ var express = require('express') | ||
// use mongoDb | ||
// var i18nMongoSync = require('../backends/mongoDb/index'); | ||
// i18nMongoSync.connect(function() { | ||
// i18nMongoSync.saveResourceSet('en-US', 'ns.special', { | ||
// resources: { | ||
// "app": { | ||
// "name": "i18n", | ||
// "insert": "you are __youAre__", | ||
// "child": "__count__ child", | ||
// "child_plural": "__count__ children", | ||
// "friend_context": "A friend", | ||
// "friend_context_male": "A boyfriend", | ||
// "friend_context_female": "A girlfriend" | ||
// } | ||
// } | ||
// }, function() { | ||
// i18n.backend(i18nMongoSync); | ||
// i18n.init({ | ||
// ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'}, | ||
// resSetPath: 'locales/__lng__/new.__ns__.json', | ||
// saveMissing: true, | ||
// debug: true | ||
// }); | ||
// }); | ||
// }); | ||
// use redis | ||
// var i18nRedisSync = require('../backends/redis/index'); | ||
// i18nRedisSync.connect(function() { | ||
// i18nRedisSync.saveResourceSet('en-US', 'ns.special', { | ||
// resources: { | ||
// "app": { | ||
// "name": "i18n", | ||
// "insert": "you are __youAre__", | ||
// "child": "__count__ child", | ||
// "child_plural": "__count__ children", | ||
// "friend_context": "A friend", | ||
// "friend_context_male": "A boyfriend", | ||
// "friend_context_female": "A girlfriend" | ||
// } | ||
// } | ||
// }, function(err) { | ||
// i18n.backend(i18nRedisSync); | ||
// i18n.init({ | ||
// ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'}, | ||
// resSetPath: 'locales/__lng__/new.__ns__.json', | ||
// saveMissing: true, | ||
// debug: true | ||
// }); | ||
// }); | ||
// }); | ||
// use filesys | ||
i18n.init({ | ||
@@ -7,0 +64,0 @@ ns: { namespaces: ['ns.common', 'ns.special'], defaultNs: 'ns.special'}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68526
34
1421