Closed marti1125 closed 11 years ago
:+1:
I believe you're still going to have to call i18n.expressBind()
- are you doing that in your app?
why i see this error } has no method '' console.log( i18n.() );
Why closed? It is not resolved.
It's closed because the solution was given : there was a missing i18n.expressBind()
which must be called. See https://github.com/jeresig/i18n-node-2#using-with-expressjs for more informations
exports.index = function(req, res){ res.render('index', { title: 'Welcome' , slides: req.i18n.__('slides') }); }; <h2><%= slides %></h2>
"express": "3.1.0"
I get this error 500 TypeError: Cannot call method '__' of undefined