How to access i18n-express dictionary in router? - node.js

 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:

URL parameters with React Router

 https://ui.dev/react-router-url-parameters If you're reading this, you're probably familiar with the idea of function parameters. T...