Lego developer
Lego developer
Hello It's fine but let me i check this out and let you know.
Hello @Garito I will create a way to handle this issue
@Garito I have added locale selector to control the locale param from request controller into middleware
You can pass your locale selector from outside of the app context. Because we have to do rights as a book in Internationalization and locale selectors between all the frameworks...
We can not use this feature currently but I will add new feature to handle this issue
Hello I think you have missed adding the babel to the Fastapi middleware. please have a look at the examples. ``` from fastapi_babel import Babel, BabelConfigs, BabelMiddleware from fastapi_babel.core import...
If you want to use `_('WORD')` outside of the request context (API scope) you have to use the lazy_gettext. The best solution is: create the file `messages.py` and write the...
> Hi! > > First of all, thank you for this amazing library! I'd like to reopen this issue because I have a similar problem and I wasn't able to...
You must use the FastAPI background task and make_gettext as dependency injection. you need to merge these two approaches to achieve the best result. If you want to handle this...
I will check this out and resolve the issues immediately @Gu-f