This PR should be completely transparent to existing users, but will allow new users to opt out of Express.
It should be noted that due to lack of test coverage in this repo, there may indeed be other Express syntax problems that we have not discovered yet. Future bug reports by non-Express users may reveal these sorts of problems.
Also - we might at some point want to change the naming here to just i18next-middleware?
Following https://github.com/i18next/i18next-express-middleware/pull/191#issuecomment-561175320, it appears we can support non-Express use with connect and
https
by simply removing these two Expressres.set
calls. Theres.set
alias is identical to the vanillares.setHeader
.This PR should be completely transparent to existing users, but will allow new users to opt out of Express.
It should be noted that due to lack of test coverage in this repo, there may indeed be other Express syntax problems that we have not discovered yet. Future bug reports by non-Express users may reveal these sorts of problems.
Also - we might at some point want to change the naming here to just
i18next-middleware
?