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:

Deeply Nested Structure

  Đây là ví dụ điển hình của sự phức tạp trong văn bản pháp luật (đặc biệt là các Nghị định, Thông tư hướng dẫn về Thuế/Hóa đơn). Cấu trúc n...