我有以下代码:
var config = require("./config");
var express = require("express");
var bodyparser = require("body-parser");
var serveStatic = require("serve-static");
var https = require('https');
var i18n = require('i18next');
i18n.init();
// Application config
var app = express();
i18n.registerAppHelper(app);
app.configure(function () {
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(serveStatic('static'));
app.use(bodyparser({uploadDir: './public'}));
app.use(express.multipart());
});
这个模板:
div.container
span.glyphicon.glyphicon-copyright-mark
span=t('footer.copyright')
但是,我无法让这个翻译功能“不”在任何地方工作。我做错了什么?