https://html.developreference.com/article/12980051/How+to+access+i18n-express+dictionary+in+router%3F
The req.i18n_texts object has all the values you need.Checkout the source if you want to know more.
app.get('/getLocalizedText', function(req, res, next) { // to get the value of HELLO_MESSAGE res.send(req.i18n_texts.HELLO_MESSAGE); });
Không có nhận xét nào:
Đăng nhận xét