While looking for some solutions, I also tried the commented lines.
I was able to use pybabel and create my .pot, .po, .mo, files. And I created my Translation for 'de'
I do not find anything about, why my print statement is not executed.
When I manually create a context_processor and call my get_locale(), the print statement appears as expected.
Please let me know, if you need something more for debugging.
I have also tried getting an answer on StackOverflow
I have a problem using Flask Babel and python3.6.
My code is as following:
I do not get anything printed at the console. I do not know what I did wrong.
My App is initiated as following in the same file:
In my config file everything relevant to Babel is following:
While looking for some solutions, I also tried the commented lines.
I was able to use pybabel and create my
.pot
,.po
,.mo
, files. And I created my Translation for 'de'I do not find anything about, why my
print
statement is not executed. When I manually create acontext_processor
and call myget_locale()
, the print statement appears as expected.Please let me know, if you need something more for debugging.
I have also tried getting an answer on StackOverflow