Can express router set a parameter globally?

for example, I already have some routes

router.get("user/:id?", ...)
router.get("detail/:id", ...)

now a demand has been suddenly added.
needs to be able to implement both Chinese and English.

will pass parameters over, how can I uniformly add a parameter. Instead of modifying one by one?
to achieve the following effect under tears

router.get("en/user/:id?",...)
Mar.17,2021

app.use ("/ en", router)


add two routes en.js and cn.js, reference two routes in app.js

var enRouter = require('./routes/en');
var cnRouter = require('./routes/cn');
app.use('/en', enRouter);
app.use('/cn', cnRouter);


can be placed in header , and the front and back ends are not changed that much. You can refer to Accept-Language , but it is recommended that you use your own defined header.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36bc4-2c02e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36bc4-2c02e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?