localization support

This commit is contained in:
Wingy 2021-12-03 11:13:43 -05:00
parent f99d6f88c3
commit d91128274b
29 changed files with 396 additions and 194 deletions

View file

@ -1,6 +1,8 @@
const config = require('../config')
module.exports = (req, res, next) => {
res.locals.config = config
res.locals.req = req
res.locals.lang = _CC.lang
next()
}