mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
Remove translate middleware
This commit is contained in:
parent
017999d544
commit
90fca5c98a
2 changed files with 1 additions and 10 deletions
|
|
@ -75,7 +75,6 @@ mongo_store = new MongoStore {url: process.env.NODE_DB_URI}, ->
|
|||
)
|
||||
# Adds req.getModel method
|
||||
.use(store.modelMiddleware())
|
||||
.use(middleware.translate)
|
||||
# API should be hit before all other routes
|
||||
.use('/api/v1', require('./api').middleware)
|
||||
.use(require('./deprecated').middleware)
|
||||
|
|
|
|||
|
|
@ -24,12 +24,4 @@ allowCrossDomain = (req, res, next) ->
|
|||
else
|
||||
next()
|
||||
|
||||
translate = (req, res, next) ->
|
||||
model = req.getModel()
|
||||
|
||||
# Set locale to bg on dev
|
||||
#model.set '_i18n.locale', 'bg' if process.env.NODE_ENV is "development"
|
||||
|
||||
next()
|
||||
|
||||
module.exports = { splash, view, allowCrossDomain, translate}
|
||||
module.exports = { splash, view, allowCrossDomain }
|
||||
|
|
|
|||
Loading…
Reference in a new issue