setting up middleware in the main app file is a little redundant, so:
add Babel.init_app method to setup the middleware inside the fastapi_babel
update Babel.__init__ to accept the app: FastAPI optional first argument to init the middleware
because of this, the configs argument is now keyword only, and it shouldn't be a problem.
setting up middleware in the main app file is a little redundant, so:
Babel.init_app
method to setup the middleware inside the fastapi_babelBabel.__init__
to acceptthe app: FastAPI
optional first argument to init the middleware because of this, theconfigs
argument is now keyword only, and it shouldn't be a problem.