Comparing version 1.2.1 to 1.2.2
@@ -66,3 +66,3 @@ (function() { | ||
app.get('/i18next/i18next.js', function(req, res) { | ||
var filename = (process.env.NODE_ENV !== 'production' || process.env['DEBUG']) ? __dirname + '/dep/i18next-1.2.js' : __dirname + '/dep/i18next-1.2.min.js'; | ||
var filename = (process.env.NODE_ENV !== 'production' || process.env['DEBUG']) ? __dirname + '/dep/i18next-1.2.1.js' : __dirname + '/dep/i18next-1.2.1.min.js'; | ||
@@ -69,0 +69,0 @@ fs.readFile(filename, function(err, data) { |
(function() { | ||
var i18n = require('./dep/i18next-1.2') | ||
var i18n = require('./dep/i18next-1.2.1') | ||
, url = require('url') | ||
@@ -5,0 +5,0 @@ , Cookies = require('cookies') |
@@ -60,3 +60,5 @@ (function() { | ||
todo--; // wait for all done befor callback | ||
if (todo === 0) cb(null, store); | ||
if (todo === 0) { | ||
cb(null, store); | ||
} | ||
}); | ||
@@ -73,3 +75,2 @@ }); | ||
if (err) { | ||
console.log('error loading resourcefile: ' + filename); | ||
cb(err); | ||
@@ -76,0 +77,0 @@ } else { |
@@ -5,3 +5,3 @@ { | ||
"description": "A i18n middleware for the Express.js framework.", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
# Introduction | ||
[![Build Status](https://secure.travis-ci.org/jamuhl/i18next-node.png)](http://travis-ci.org/jamuhl/i18next-node) | ||
Project goal is to provide the same easy way to translate a website on serverside like in | ||
@@ -12,4 +14,2 @@ [i18next](https://github.com/jamuhl/i18next) on the clientside: | ||
[![Build Status](https://secure.travis-ci.org/jamuhl/i18next-node.png)](http://travis-ci.org/jamuhl/i18next-node) | ||
# installation | ||
@@ -16,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
47801
927