Open hueitan opened 10 years ago
yes it will be nice to use i18n mecanisme
Any updates here?
Fixed it with a helper method:
app.use(function (req, res, next) {
res.locals.__ = function (string) {
return i18n.__.apply(req, arguments);
};
next();
});
In your template files do this:
<%= @__('hello') %>
Cheers and have fun!
@baryshev is closed!
@ixisio What do you mean "closed"?
@huei90 by following my example you get i18n running w/ ect...
Can I get it to generate
i18n
?For example I have one file
index.ect
After
ect
process, I generate two filesen/index.html
fr/index.html
by grabbing two different data and just using only one templateindex.ect
Can I do this ?