Closed Rikanishu closed 8 years ago
Would be nice to get this or https://github.com/mitsuhiko/flask-babel/pull/67 merged!
I've resolved this in a slightly-cleaner but identical manner in https://github.com/TkTech/flask-babel/commit/2ada81c833640d512a00fcebdd867ff46294b932
Included in PR #88, thanks!
For example, this happens when application was initialized for background Celery task. Due the fact that request context is not used in this case, but an error occured at locale initialization.