daveqr / urban-thread

MIT License
1 stars 0 forks source link

Update API to use i18n for responses #54

Open daveqr opened 1 week ago

daveqr commented 1 week ago

For the UserController, the original line used the LanguageRequest:

return res.json({message: req.i18n.__('Registration successful'), newUser: tempUser, token});